diff options
| author | github-actions <github-actions@github.com> | 2023-01-21 00:07:20 +0000 |
|---|---|---|
| committer | github-actions <github-actions@github.com> | 2023-01-21 00:07:20 +0000 |
| commit | bb5675b2daa220a8716eda2c27b23307434f1c31 (patch) | |
| tree | ee3cbf136a160fdf8eebd721ea493ee3b928fbb8 | |
| parent | feat: add nomad language support (#2413) (diff) | |
| download | nvim-lspconfig-bb5675b2daa220a8716eda2c27b23307434f1c31.tar nvim-lspconfig-bb5675b2daa220a8716eda2c27b23307434f1c31.tar.gz nvim-lspconfig-bb5675b2daa220a8716eda2c27b23307434f1c31.tar.bz2 nvim-lspconfig-bb5675b2daa220a8716eda2c27b23307434f1c31.tar.lz nvim-lspconfig-bb5675b2daa220a8716eda2c27b23307434f1c31.tar.xz nvim-lspconfig-bb5675b2daa220a8716eda2c27b23307434f1c31.tar.zst nvim-lspconfig-bb5675b2daa220a8716eda2c27b23307434f1c31.zip | |
docs: update server_configurations.md
skip-checks: true
| -rw-r--r-- | doc/server_configurations.md | 42 | ||||
| -rw-r--r-- | doc/server_configurations.txt | 42 |
2 files changed, 84 insertions, 0 deletions
diff --git a/doc/server_configurations.md b/doc/server_configurations.md index c12997f7..31c20d2d 100644 --- a/doc/server_configurations.md +++ b/doc/server_configurations.md @@ -111,6 +111,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) +- [nomad_lsp](#nomad_lsp) - [ntt](#ntt) - [nxls](#nxls) - [ocamlls](#ocamlls) @@ -4725,6 +4726,47 @@ require'lspconfig'.nimls.setup{} ``` +## nomad_lsp + +https://github.com/juliosueiras/nomad-lsp + +Written in Go, compilation is needed for `nomad_lsp` to be used. Please see the [original repository](https://github.com/juliosuieras/nomad-lsp). + +Add the executable to your system or vim PATH and it will be set to go. + +No configuration option is needed unless you choose not to add `nomad-lsp` executable to the PATH. You should know what you are doing if you choose so. + +```lua +require('lspconfig').nomad_lsp.setup{ } +``` + +However, a `hcl.nomad` or `nomad` filetype should be defined. + +Description of your jobs should be written in `.nomad` files for the LSP client to configure the server's `root_dir` configuration option. + + + +**Snippet to enable the language server:** +```lua +require'lspconfig'.nomad_lsp.setup{} +``` + + +**Default values:** + - `cmd` : + ```lua + { "nomad-lsp" } + ``` + - `filetypes` : + ```lua + { "hcl.nomad", "nomad" } + ``` + - `root_dir` : + ```lua + util.root_pattern("hcl.nomad", "nomad") + ``` + + ## ntt https://github.com/nokia/ntt diff --git a/doc/server_configurations.txt b/doc/server_configurations.txt index c12997f7..31c20d2d 100644 --- a/doc/server_configurations.txt +++ b/doc/server_configurations.txt @@ -111,6 +111,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) +- [nomad_lsp](#nomad_lsp) - [ntt](#ntt) - [nxls](#nxls) - [ocamlls](#ocamlls) @@ -4725,6 +4726,47 @@ require'lspconfig'.nimls.setup{} ``` +## nomad_lsp + +https://github.com/juliosueiras/nomad-lsp + +Written in Go, compilation is needed for `nomad_lsp` to be used. Please see the [original repository](https://github.com/juliosuieras/nomad-lsp). + +Add the executable to your system or vim PATH and it will be set to go. + +No configuration option is needed unless you choose not to add `nomad-lsp` executable to the PATH. You should know what you are doing if you choose so. + +```lua +require('lspconfig').nomad_lsp.setup{ } +``` + +However, a `hcl.nomad` or `nomad` filetype should be defined. + +Description of your jobs should be written in `.nomad` files for the LSP client to configure the server's `root_dir` configuration option. + + + +**Snippet to enable the language server:** +```lua +require'lspconfig'.nomad_lsp.setup{} +``` + + +**Default values:** + - `cmd` : + ```lua + { "nomad-lsp" } + ``` + - `filetypes` : + ```lua + { "hcl.nomad", "nomad" } + ``` + - `root_dir` : + ```lua + util.root_pattern("hcl.nomad", "nomad") + ``` + + ## ntt https://github.com/nokia/ntt |
