aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2023-11-06 11:24:33 +0000
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2023-11-06 11:24:33 +0000
commit37457f268af5cd6765e589b0dcd7cbd192d8da00 (patch)
treec8d14a2620143a40e43d472deafd69ea89f279fb
parentfeat: add ast-grep language server (#2880) (diff)
downloadnvim-lspconfig-37457f268af5cd6765e589b0dcd7cbd192d8da00.tar
nvim-lspconfig-37457f268af5cd6765e589b0dcd7cbd192d8da00.tar.gz
nvim-lspconfig-37457f268af5cd6765e589b0dcd7cbd192d8da00.tar.bz2
nvim-lspconfig-37457f268af5cd6765e589b0dcd7cbd192d8da00.tar.lz
nvim-lspconfig-37457f268af5cd6765e589b0dcd7cbd192d8da00.tar.xz
nvim-lspconfig-37457f268af5cd6765e589b0dcd7cbd192d8da00.tar.zst
nvim-lspconfig-37457f268af5cd6765e589b0dcd7cbd192d8da00.zip
docs: update server_configurations.md
skip-checks: true
-rw-r--r--doc/server_configurations.md38
-rw-r--r--doc/server_configurations.txt38
2 files changed, 76 insertions, 0 deletions
diff --git a/doc/server_configurations.md b/doc/server_configurations.md
index 88f7bd19..d7eb63d1 100644
--- a/doc/server_configurations.md
+++ b/doc/server_configurations.md
@@ -14,6 +14,7 @@ autogenerated from the Lua files. You can view this file in Nvim by running
- [apex_ls](#apex_ls)
- [arduino_language_server](#arduino_language_server)
- [asm_lsp](#asm_lsp)
+- [ast_grep](#ast_grep)
- [astro](#astro)
- [awk_ls](#awk_ls)
- [azure_pipelines_ls](#azure_pipelines_ls)
@@ -838,6 +839,43 @@ require'lspconfig'.asm_lsp.setup{}
```
+## ast_grep
+
+https://ast-grep.github.io/
+
+ast-grep(sg) is a fast and polyglot tool for code structural search, lint, rewriting at large scale.
+
+```sh
+npm install [-g] @ast-grep/cli
+```
+
+
+
+**Snippet to enable the language server:**
+```lua
+require'lspconfig'.ast_grep.setup{}
+```
+
+
+**Default values:**
+ - `cmd` :
+ ```lua
+ { "ast-grep", "lsp" }
+ ```
+ - `filetypes` :
+ ```lua
+ { "c", "cpp", "rust", "go", "java", "python", "javascript", "typescript", "html", "css", "kotlin", "dart", "lua" }
+ ```
+ - `root_dir` :
+ ```lua
+ root_pattern('sgconfig.yaml')
+ ```
+ - `single_file_support` :
+ ```lua
+ true
+ ```
+
+
## astro
https://github.com/withastro/language-tools/tree/main/packages/language-server
diff --git a/doc/server_configurations.txt b/doc/server_configurations.txt
index 88f7bd19..d7eb63d1 100644
--- a/doc/server_configurations.txt
+++ b/doc/server_configurations.txt
@@ -14,6 +14,7 @@ autogenerated from the Lua files. You can view this file in Nvim by running
- [apex_ls](#apex_ls)
- [arduino_language_server](#arduino_language_server)
- [asm_lsp](#asm_lsp)
+- [ast_grep](#ast_grep)
- [astro](#astro)
- [awk_ls](#awk_ls)
- [azure_pipelines_ls](#azure_pipelines_ls)
@@ -838,6 +839,43 @@ require'lspconfig'.asm_lsp.setup{}
```
+## ast_grep
+
+https://ast-grep.github.io/
+
+ast-grep(sg) is a fast and polyglot tool for code structural search, lint, rewriting at large scale.
+
+```sh
+npm install [-g] @ast-grep/cli
+```
+
+
+
+**Snippet to enable the language server:**
+```lua
+require'lspconfig'.ast_grep.setup{}
+```
+
+
+**Default values:**
+ - `cmd` :
+ ```lua
+ { "ast-grep", "lsp" }
+ ```
+ - `filetypes` :
+ ```lua
+ { "c", "cpp", "rust", "go", "java", "python", "javascript", "typescript", "html", "css", "kotlin", "dart", "lua" }
+ ```
+ - `root_dir` :
+ ```lua
+ root_pattern('sgconfig.yaml')
+ ```
+ - `single_file_support` :
+ ```lua
+ true
+ ```
+
+
## astro
https://github.com/withastro/language-tools/tree/main/packages/language-server