aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgithub-actions <github-actions@github.com>2022-11-26 00:57:36 +0000
committergithub-actions <github-actions@github.com>2022-11-26 00:57:36 +0000
commitb835c95ac886a5f2700c711ba36527dc89d006aa (patch)
tree1c748c2e1609fc135b52806177046d7902d77748
parentdocs(sourcery): put setup inside code block (#2258) (diff)
downloadnvim-lspconfig-b835c95ac886a5f2700c711ba36527dc89d006aa.tar
nvim-lspconfig-b835c95ac886a5f2700c711ba36527dc89d006aa.tar.gz
nvim-lspconfig-b835c95ac886a5f2700c711ba36527dc89d006aa.tar.bz2
nvim-lspconfig-b835c95ac886a5f2700c711ba36527dc89d006aa.tar.lz
nvim-lspconfig-b835c95ac886a5f2700c711ba36527dc89d006aa.tar.xz
nvim-lspconfig-b835c95ac886a5f2700c711ba36527dc89d006aa.tar.zst
nvim-lspconfig-b835c95ac886a5f2700c711ba36527dc89d006aa.zip
docs: update server_configurations.md
skip-checks: true
-rw-r--r--doc/server_configurations.md64
-rw-r--r--doc/server_configurations.txt64
2 files changed, 106 insertions, 22 deletions
diff --git a/doc/server_configurations.md b/doc/server_configurations.md
index 5f920117..8261c243 100644
--- a/doc/server_configurations.md
+++ b/doc/server_configurations.md
@@ -104,6 +104,7 @@ autogenerated from the Lua files. You can view this file in Nvim by running
- [nickel_ls](#nickel_ls)
- [nil_ls](#nil_ls)
- [nimls](#nimls)
+- [ntt](#ntt)
- [nxls](#nxls)
- [ocamlls](#ocamlls)
- [ocamllsp](#ocamllsp)
@@ -4355,6 +4356,43 @@ require'lspconfig'.nimls.setup{}
```
+## ntt
+
+https://github.com/nokia/ntt
+Installation instructions can be found [here](https://github.com/nokia/ntt#Install).
+Can be configured by passing a "settings" object to `ntt.setup{}`:
+```lua
+require('lspconfig').ntt.setup{
+ settings = {
+ ntt = {
+ }
+ }
+}
+```
+
+
+
+**Snippet to enable the language server:**
+```lua
+require'lspconfig'.ntt.setup{}
+```
+
+
+**Default values:**
+ - `cmd` :
+ ```lua
+ { "ntt", "langserver" }
+ ```
+ - `filetypes` :
+ ```lua
+ { "ttcn" }
+ ```
+ - `root_dir` :
+ ```lua
+ util.root_pattern(".git")
+ ```
+
+
## nxls
https://github.com/nrwl/nx-console/tree/master/apps/nxls
@@ -6455,21 +6493,25 @@ https://github.com/sourcery-ai/sourcery
Refactor Python instantly using the power of AI.
-It requires the initializationOptions param to be populated as shown below and will respond with the list of ServerCapabilities that it supports.
+It requires the init_options param to be populated as shown below and will respond with the list of ServerCapabilities that it supports:
-init_options = {
- --- The Sourcery token for authenticating the user.
- --- This is retrieved from the Sourcery website and must be
- --- provided by each user. The extension must provide a
- --- configuration option for the user to provide this value.
- token = <YOUR_TOKEN>
+```lua
+require'lspconfig'.sourcery.setup {
+ init_options = {
+ --- The Sourcery token for authenticating the user.
+ --- This is retrieved from the Sourcery website and must be
+ --- provided by each user. The extension must provide a
+ --- configuration option for the user to provide this value.
+ token = <YOUR_TOKEN>,
- --- The extension's name and version as defined by the extension.
- extension_version = 'vim.lsp'
+ --- The extension's name and version as defined by the extension.
+ extension_version = 'vim.lsp',
- --- The editor's name and version as defined by the editor.
- editor_version = 'vim'
+ --- The editor's name and version as defined by the editor.
+ editor_version = 'vim',
+ },
}
+```
diff --git a/doc/server_configurations.txt b/doc/server_configurations.txt
index 5f920117..8261c243 100644
--- a/doc/server_configurations.txt
+++ b/doc/server_configurations.txt
@@ -104,6 +104,7 @@ autogenerated from the Lua files. You can view this file in Nvim by running
- [nickel_ls](#nickel_ls)
- [nil_ls](#nil_ls)
- [nimls](#nimls)
+- [ntt](#ntt)
- [nxls](#nxls)
- [ocamlls](#ocamlls)
- [ocamllsp](#ocamllsp)
@@ -4355,6 +4356,43 @@ require'lspconfig'.nimls.setup{}
```
+## ntt
+
+https://github.com/nokia/ntt
+Installation instructions can be found [here](https://github.com/nokia/ntt#Install).
+Can be configured by passing a "settings" object to `ntt.setup{}`:
+```lua
+require('lspconfig').ntt.setup{
+ settings = {
+ ntt = {
+ }
+ }
+}
+```
+
+
+
+**Snippet to enable the language server:**
+```lua
+require'lspconfig'.ntt.setup{}
+```
+
+
+**Default values:**
+ - `cmd` :
+ ```lua
+ { "ntt", "langserver" }
+ ```
+ - `filetypes` :
+ ```lua
+ { "ttcn" }
+ ```
+ - `root_dir` :
+ ```lua
+ util.root_pattern(".git")
+ ```
+
+
## nxls
https://github.com/nrwl/nx-console/tree/master/apps/nxls
@@ -6455,21 +6493,25 @@ https://github.com/sourcery-ai/sourcery
Refactor Python instantly using the power of AI.
-It requires the initializationOptions param to be populated as shown below and will respond with the list of ServerCapabilities that it supports.
+It requires the init_options param to be populated as shown below and will respond with the list of ServerCapabilities that it supports:
-init_options = {
- --- The Sourcery token for authenticating the user.
- --- This is retrieved from the Sourcery website and must be
- --- provided by each user. The extension must provide a
- --- configuration option for the user to provide this value.
- token = <YOUR_TOKEN>
+```lua
+require'lspconfig'.sourcery.setup {
+ init_options = {
+ --- The Sourcery token for authenticating the user.
+ --- This is retrieved from the Sourcery website and must be
+ --- provided by each user. The extension must provide a
+ --- configuration option for the user to provide this value.
+ token = <YOUR_TOKEN>,
- --- The extension's name and version as defined by the extension.
- extension_version = 'vim.lsp'
+ --- The extension's name and version as defined by the extension.
+ extension_version = 'vim.lsp',
- --- The editor's name and version as defined by the editor.
- editor_version = 'vim'
+ --- The editor's name and version as defined by the editor.
+ editor_version = 'vim',
+ },
}
+```