Skip to content

Commit 7d32353

Browse files
docs: update configs.md
skip-checks: true
1 parent 92f2d91 commit 7d32353

2 files changed

Lines changed: 72 additions & 0 deletions

File tree

doc/configs.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ Nvim by running `:help lspconfig-all`.
116116
- [gleam](#gleam)
117117
- [glsl_analyzer](#glsl_analyzer)
118118
- [glslls](#glslls)
119+
- [gnls](#gnls)
119120
- [golangci_lint_ls](#golangci_lint_ls)
120121
- [gopls](#gopls)
121122
- [gradle_ls](#gradle_ls)
@@ -4485,6 +4486,42 @@ Default config:
44854486

44864487
---
44874488

4489+
## gnls
4490+
4491+
https://github.com/microsoft/gnls
4492+
4493+
Microsoft's language server for GN build files.
4494+
4495+
Assuming there is a `gnls` script somewhere in your `$PATH`, containing
4496+
for example:
4497+
4498+
```shell
4499+
GNLS_SRC_DIR=</path/to/gnls>
4500+
4501+
exec node ${GNLS_SRC_DIR}/build/server.js $@
4502+
```
4503+
4504+
Snippet to enable the language server:
4505+
```lua
4506+
require'lspconfig'.gnls.setup{}
4507+
```
4508+
4509+
Default config:
4510+
- `cmd` :
4511+
```lua
4512+
{ "gnls", "--stdio" }
4513+
```
4514+
- `filetypes` :
4515+
```lua
4516+
{ "gn" }
4517+
```
4518+
- `root_markers` :
4519+
```lua
4520+
{ ".gn", ".git" }
4521+
```
4522+
4523+
---
4524+
44884525
## golangci_lint_ls
44894526

44904527
Combination of both lint server and client

doc/configs.txt

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4033,6 +4033,41 @@ Default config:
40334033
```
40344034

40354035

4036+
------------------------------------------------------------------------------
4037+
gnls
4038+
4039+
https://github.com/microsoft/gnls
4040+
4041+
Microsoft's language server for GN build files.
4042+
4043+
Assuming there is a `gnls` script somewhere in your `$PATH`, containing
4044+
for example:
4045+
4046+
```shell
4047+
GNLS_SRC_DIR=</path/to/gnls>
4048+
4049+
exec node ${GNLS_SRC_DIR}/build/server.js $@
4050+
```
4051+
4052+
Snippet to enable the language server: >lua
4053+
vim.lsp.enable('gnls')
4054+
4055+
4056+
Default config:
4057+
- `cmd` :
4058+
```lua
4059+
{ "gnls", "--stdio" }
4060+
```
4061+
- `filetypes` :
4062+
```lua
4063+
{ "gn" }
4064+
```
4065+
- `root_markers` :
4066+
```lua
4067+
{ ".gn", ".git" }
4068+
```
4069+
4070+
40364071
------------------------------------------------------------------------------
40374072
golangci_lint_ls
40384073

0 commit comments

Comments
 (0)