diff options
| author | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2025-04-25 13:45:53 +0000 |
|---|---|---|
| committer | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2025-04-25 13:45:53 +0000 |
| commit | 7d32353d99fa24c9c2fac993b8378afbc92df94b (patch) | |
| tree | fb9aeaafaf6fbcb7421cdbc86f284976895dbb0e | |
| parent | feat: gnls #3773 (diff) | |
| download | nvim-lspconfig-7d32353d99fa24c9c2fac993b8378afbc92df94b.tar nvim-lspconfig-7d32353d99fa24c9c2fac993b8378afbc92df94b.tar.gz nvim-lspconfig-7d32353d99fa24c9c2fac993b8378afbc92df94b.tar.bz2 nvim-lspconfig-7d32353d99fa24c9c2fac993b8378afbc92df94b.tar.lz nvim-lspconfig-7d32353d99fa24c9c2fac993b8378afbc92df94b.tar.xz nvim-lspconfig-7d32353d99fa24c9c2fac993b8378afbc92df94b.tar.zst nvim-lspconfig-7d32353d99fa24c9c2fac993b8378afbc92df94b.zip | |
docs: update configs.md
skip-checks: true
| -rw-r--r-- | doc/configs.md | 37 | ||||
| -rw-r--r-- | doc/configs.txt | 35 |
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 |
