diff options
| author | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2025-04-17 05:51:15 +0000 |
|---|---|---|
| committer | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2025-04-17 05:51:15 +0000 |
| commit | 324f98b2ac64cd1fe407ba554f99a89111d4bc2f (patch) | |
| tree | 107255f166c8a04bcecfa9df3bd58b812a79eb15 | |
| parent | feat(astroJS): add vim.lsp.config support (#3738) (diff) | |
| download | nvim-lspconfig-324f98b2ac64cd1fe407ba554f99a89111d4bc2f.tar nvim-lspconfig-324f98b2ac64cd1fe407ba554f99a89111d4bc2f.tar.gz nvim-lspconfig-324f98b2ac64cd1fe407ba554f99a89111d4bc2f.tar.bz2 nvim-lspconfig-324f98b2ac64cd1fe407ba554f99a89111d4bc2f.tar.lz nvim-lspconfig-324f98b2ac64cd1fe407ba554f99a89111d4bc2f.tar.xz nvim-lspconfig-324f98b2ac64cd1fe407ba554f99a89111d4bc2f.tar.zst nvim-lspconfig-324f98b2ac64cd1fe407ba554f99a89111d4bc2f.zip | |
docs: update configs.md
skip-checks: true
| -rw-r--r-- | doc/configs.md | 40 | ||||
| -rw-r--r-- | doc/configs.txt | 38 |
2 files changed, 76 insertions, 2 deletions
diff --git a/doc/configs.md b/doc/configs.md index 47f8f28f..a938a1da 100644 --- a/doc/configs.md +++ b/doc/configs.md @@ -15,6 +15,7 @@ Nvim by running `:help lspconfig-all`. - [arduino_language_server](#arduino_language_server) - [asm_lsp](#asm_lsp) - [ast_grep](#ast_grep) +- [astro](#astro) - [atlas](#atlas) - [autohotkey_lsp](#autohotkey_lsp) - [autotools_ls](#autotools_ls) @@ -791,6 +792,43 @@ Default config: --- +## astro + +https://github.com/withastro/language-tools/tree/main/packages/language-server + + `astro-ls` can be installed via `npm`: + ```sh + npm install -g @astrojs/language-server +``` + +Snippet to enable the language server: +```lua +require'lspconfig'.astro.setup{} +``` + +Default config: +- `before_init` source (use "gF" to open): [../lsp/astro.lua:15](../lsp/astro.lua#L15) +- `cmd` : + ```lua + { "astro-ls", "--stdio" } + ``` +- `filetypes` : + ```lua + { "astro" } + ``` +- `init_options` : + ```lua + { + typescript = {} + } + ``` +- `root_markers` : + ```lua + { "package.json", "tsconfig.json", "jsconfig.json", ".git" } + ``` + +--- + ## atlas https://github.com/ariga/atlas @@ -7098,7 +7136,7 @@ Default config: ``` - `cmd` : ```lua - { "OmniSharp", "-z", "--hostPID", "1894", "DotNet:enablePackageRestore=false", "--encoding", "utf-8", "--languageserver" } + { "OmniSharp", "-z", "--hostPID", "1864", "DotNet:enablePackageRestore=false", "--encoding", "utf-8", "--languageserver" } ``` - `filetypes` : ```lua diff --git a/doc/configs.txt b/doc/configs.txt index 6b97a801..a142e27d 100644 --- a/doc/configs.txt +++ b/doc/configs.txt @@ -449,6 +449,42 @@ Default config: ------------------------------------------------------------------------------ +astro + +https://github.com/withastro/language-tools/tree/main/packages/language-server + + `astro-ls` can be installed via `npm`: + ```sh + npm install -g @astrojs/language-server +``` + +Snippet to enable the language server: >lua + vim.lsp.enable('astro') + + +Default config: +- `before_init` source (use "gF" to open): [../lsp/astro.lua:15](../lsp/astro.lua#L15) +- `cmd` : + ```lua + { "astro-ls", "--stdio" } + ``` +- `filetypes` : + ```lua + { "astro" } + ``` +- `init_options` : + ```lua + { + typescript = {} + } + ``` +- `root_markers` : + ```lua + { "package.json", "tsconfig.json", "jsconfig.json", ".git" } + ``` + + +------------------------------------------------------------------------------ atlas https://github.com/ariga/atlas @@ -6580,7 +6616,7 @@ Default config: ``` - `cmd` : ```lua - { "OmniSharp", "-z", "--hostPID", "1894", "DotNet:enablePackageRestore=false", "--encoding", "utf-8", "--languageserver" } + { "OmniSharp", "-z", "--hostPID", "1864", "DotNet:enablePackageRestore=false", "--encoding", "utf-8", "--languageserver" } ``` - `filetypes` : ```lua |
