diff options
| author | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2024-03-11 05:40:36 +0000 |
|---|---|---|
| committer | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2024-03-11 05:40:36 +0000 |
| commit | 1917b562a02f20885900b1da0f0ea25028ccedab (patch) | |
| tree | 0b8a7dd35dee2d35e283ef48f239682acb4589c2 | |
| parent | feat: add vacuum support (#3065) (diff) | |
| download | nvim-lspconfig-1917b562a02f20885900b1da0f0ea25028ccedab.tar nvim-lspconfig-1917b562a02f20885900b1da0f0ea25028ccedab.tar.gz nvim-lspconfig-1917b562a02f20885900b1da0f0ea25028ccedab.tar.bz2 nvim-lspconfig-1917b562a02f20885900b1da0f0ea25028ccedab.tar.lz nvim-lspconfig-1917b562a02f20885900b1da0f0ea25028ccedab.tar.xz nvim-lspconfig-1917b562a02f20885900b1da0f0ea25028ccedab.tar.zst nvim-lspconfig-1917b562a02f20885900b1da0f0ea25028ccedab.zip | |
docs: update server_configurations.md
skip-checks: true
| -rw-r--r-- | doc/server_configurations.md | 45 | ||||
| -rw-r--r-- | doc/server_configurations.txt | 45 |
2 files changed, 90 insertions, 0 deletions
diff --git a/doc/server_configurations.md b/doc/server_configurations.md index 0a62143b..c709beaa 100644 --- a/doc/server_configurations.md +++ b/doc/server_configurations.md @@ -276,6 +276,7 @@ autogenerated from the Lua files. You can view this file in Nvim by running - [unocss](#unocss) - [uvls](#uvls) - [v_analyzer](#v_analyzer) +- [vacuum](#vacuum) - [vala_ls](#vala_ls) - [vale_ls](#vale_ls) - [vdmj](#vdmj) @@ -12079,6 +12080,50 @@ require'lspconfig'.v_analyzer.setup{} ``` +## vacuum + +Vacuum is the worlds fastest OpenAPI 3, OpenAPI 2 / Swagger linter and quality analysis tool. + +You can install vacuum using mason or follow the instructions here: https://github.com/daveshanley/vacuum + +The file types are not detected automatically, you can register them manually (see below) or override the filetypes: + +```lua +vim.filetype.add { + pattern = { + ['openapi.*%.ya?ml'] = 'yaml.openapi', + ['openapi.*%.json'] = 'json.openapi', + }, +} +``` + + + +**Snippet to enable the language server:** +```lua +require'lspconfig'.vacuum.setup{} +``` + + +**Default values:** + - `cmd` : + ```lua + { "vacuum", "language-server" } + ``` + - `filetypes` : + ```lua + { "yaml.openapi", "json.openapi" } + ``` + - `root_dir` : + ```lua + see source file + ``` + - `single_file_support` : + ```lua + true + ``` + + ## vala_ls https://github.com/Prince781/vala-language-server diff --git a/doc/server_configurations.txt b/doc/server_configurations.txt index 0a62143b..c709beaa 100644 --- a/doc/server_configurations.txt +++ b/doc/server_configurations.txt @@ -276,6 +276,7 @@ autogenerated from the Lua files. You can view this file in Nvim by running - [unocss](#unocss) - [uvls](#uvls) - [v_analyzer](#v_analyzer) +- [vacuum](#vacuum) - [vala_ls](#vala_ls) - [vale_ls](#vale_ls) - [vdmj](#vdmj) @@ -12079,6 +12080,50 @@ require'lspconfig'.v_analyzer.setup{} ``` +## vacuum + +Vacuum is the worlds fastest OpenAPI 3, OpenAPI 2 / Swagger linter and quality analysis tool. + +You can install vacuum using mason or follow the instructions here: https://github.com/daveshanley/vacuum + +The file types are not detected automatically, you can register them manually (see below) or override the filetypes: + +```lua +vim.filetype.add { + pattern = { + ['openapi.*%.ya?ml'] = 'yaml.openapi', + ['openapi.*%.json'] = 'json.openapi', + }, +} +``` + + + +**Snippet to enable the language server:** +```lua +require'lspconfig'.vacuum.setup{} +``` + + +**Default values:** + - `cmd` : + ```lua + { "vacuum", "language-server" } + ``` + - `filetypes` : + ```lua + { "yaml.openapi", "json.openapi" } + ``` + - `root_dir` : + ```lua + see source file + ``` + - `single_file_support` : + ```lua + true + ``` + + ## vala_ls https://github.com/Prince781/vala-language-server |
