aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--doc/configs.md37
-rw-r--r--doc/configs.txt35
2 files changed, 72 insertions, 0 deletions
diff --git a/doc/configs.md b/doc/configs.md
index 1d2e57d6..36a762ed 100644
--- a/doc/configs.md
+++ b/doc/configs.md
@@ -116,6 +116,7 @@ Nvim by running `:help lspconfig-all`.
- [gleam](#gleam)
- [glsl_analyzer](#glsl_analyzer)
- [glslls](#glslls)
+- [gnls](#gnls)
- [golangci_lint_ls](#golangci_lint_ls)
- [gopls](#gopls)
- [gradle_ls](#gradle_ls)
@@ -4485,6 +4486,42 @@ Default config:
---
+## gnls
+
+https://github.com/microsoft/gnls
+
+Microsoft's language server for GN build files.
+
+Assuming there is a `gnls` script somewhere in your `$PATH`, containing
+for example:
+
+```shell
+GNLS_SRC_DIR=</path/to/gnls>
+
+exec node ${GNLS_SRC_DIR}/build/server.js $@
+```
+
+Snippet to enable the language server:
+```lua
+require'lspconfig'.gnls.setup{}
+```
+
+Default config:
+- `cmd` :
+ ```lua
+ { "gnls", "--stdio" }
+ ```
+- `filetypes` :
+ ```lua
+ { "gn" }
+ ```
+- `root_markers` :
+ ```lua
+ { ".gn", ".git" }
+ ```
+
+---
+
## golangci_lint_ls
Combination of both lint server and client
diff --git a/doc/configs.txt b/doc/configs.txt
index 8a3159c5..e1881463 100644
--- a/doc/configs.txt
+++ b/doc/configs.txt
@@ -4034,6 +4034,41 @@ Default config:
------------------------------------------------------------------------------
+gnls
+
+https://github.com/microsoft/gnls
+
+Microsoft's language server for GN build files.
+
+Assuming there is a `gnls` script somewhere in your `$PATH`, containing
+for example:
+
+```shell
+GNLS_SRC_DIR=</path/to/gnls>
+
+exec node ${GNLS_SRC_DIR}/build/server.js $@
+```
+
+Snippet to enable the language server: >lua
+ vim.lsp.enable('gnls')
+
+
+Default config:
+- `cmd` :
+ ```lua
+ { "gnls", "--stdio" }
+ ```
+- `filetypes` :
+ ```lua
+ { "gn" }
+ ```
+- `root_markers` :
+ ```lua
+ { ".gn", ".git" }
+ ```
+
+
+------------------------------------------------------------------------------
golangci_lint_ls
Combination of both lint server and client