diff options
| author | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2025-05-22 09:44:19 +0000 |
|---|---|---|
| committer | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2025-05-22 09:44:19 +0000 |
| commit | 18987a5632f6bff917a8e978ba245b8db644e00a (patch) | |
| tree | 196bbb4455685e3f125150b039753ff38271b5ae | |
| parent | feat: vespa_ls #3845 (diff) | |
| download | nvim-lspconfig-18987a5632f6bff917a8e978ba245b8db644e00a.tar nvim-lspconfig-18987a5632f6bff917a8e978ba245b8db644e00a.tar.gz nvim-lspconfig-18987a5632f6bff917a8e978ba245b8db644e00a.tar.bz2 nvim-lspconfig-18987a5632f6bff917a8e978ba245b8db644e00a.tar.lz nvim-lspconfig-18987a5632f6bff917a8e978ba245b8db644e00a.tar.xz nvim-lspconfig-18987a5632f6bff917a8e978ba245b8db644e00a.tar.zst nvim-lspconfig-18987a5632f6bff917a8e978ba245b8db644e00a.zip | |
docs: update configs.md
skip-checks: true
| -rw-r--r-- | doc/configs.md | 52 | ||||
| -rw-r--r-- | doc/configs.txt | 42 |
2 files changed, 94 insertions, 0 deletions
diff --git a/doc/configs.md b/doc/configs.md index 8813a525..5a72f07f 100644 --- a/doc/configs.md +++ b/doc/configs.md @@ -341,6 +341,7 @@ Nvim by running `:help lspconfig-all`. - [verible](#verible) - [veridian](#veridian) - [veryl_ls](#veryl_ls) +- [vespa_ls](#vespa_ls) - [vhdl_ls](#vhdl_ls) - [vimls](#vimls) - [visualforce_ls](#visualforce_ls) @@ -12653,6 +12654,57 @@ Default config: --- +## vespa_ls + +https://github.com/vespa-engine/vespa/tree/master/integration/schema-language-server + +Vespa Language Server provides LSP features such as completion, diagnostics, +and go-to-definition for Vespa schema files (`.sd`), profile files (`.profile`), +and YQL query files (`.yql`). + +This language server requires Java 17 or higher. You can build the jar from source. + +You can override the default command by manually configuring it like this: + +```lua +vim.lsp.config('vespa_ls', { + cmd = { 'java', '-jar', '/path/to/vespa-language-server.jar' }, +}) +``` + +The project root is determined based on the presence of a `.git` directory. + +To make Neovim recognize the proper filetypes, add the following setting in `init.lua`: + + vim.filetype.add { + extension = { + profile = 'sd', + sd = 'sd', + yql = 'yql', + }, + } + +Snippet to enable the language server: +```lua +vim.lsp.enable('vespa_ls') +``` + +Default config: +- `cmd` : + ```lua + { "java", "-jar", "vespa-language-server.jar" } + ``` +- `filetypes` : + ```lua + { "sd", "profile", "yql" } + ``` +- `root_markers` : + ```lua + { ".git" } + ``` + +--- + ## vhdl_ls Install vhdl_ls from https://github.com/VHDL-LS/rust_hdl and add it to path diff --git a/doc/configs.txt b/doc/configs.txt index ff98062d..97f59abb 100644 --- a/doc/configs.txt +++ b/doc/configs.txt @@ -9379,6 +9379,48 @@ Default config: < ------------------------------------------------------------------------------ +vespa_ls + +https://github.com/vespa-engine/vespa/tree/master/integration/schema-language-server + +Vespa Language Server provides LSP features such as completion, diagnostics, +and go-to-definition for Vespa schema files (`.sd`), profile files (`.profile`), +and YQL query files (`.yql`). + +This language server requires Java 17 or higher. You can build the jar from source. + +You can override the default command by manually configuring it like this: +>lua + vim.lsp.config('vespa_ls', { + cmd = { 'java', '-jar', '/path/to/vespa-language-server.jar' }, + }) + +The project root is determined based on the presence of a `.git` directory. + +To make Neovim recognize the proper filetypes, add the following setting in `init.lua`: + + vim.filetype.add { + extension = { + profile = 'sd', + sd = 'sd', + yql = 'yql', + }, + } + +Snippet to enable the language server: >lua + vim.lsp.enable('vespa_ls') + + +Default config: +- cmd: >lua + { "java", "-jar", "vespa-language-server.jar" } +- filetypes: >lua + { "sd", "profile", "yql" } +- root_markers: >lua + { ".git" } +< + +------------------------------------------------------------------------------ vhdl_ls Install vhdl_ls from https://github.com/VHDL-LS/rust_hdl and add it to path |
