Skip to content

Commit a18bfda

Browse files
committed
feat: add config for gnls
Add support for Microsoft's GN language server [1]. [1] https://github.com/microsoft/gnls Signed-off-by: Nick Diego Yamane <nickdiego@igalia.com>
1 parent 747de98 commit a18bfda

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

lsp/gnls.lua

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---@brief
2+
---
3+
--- https://github.com/microsoft/gnls
4+
---
5+
--- Microsoft's language server for GN build files.
6+
---
7+
--- Assuming there is a `gnls` script somewhere in your `$PATH`, containing
8+
--- for example:
9+
---
10+
--- ```shell
11+
--- GNLS_SRC_DIR=</path/to/gnls>
12+
---
13+
--- exec node ${GNLS_SRC_DIR}/build/server.js $@
14+
--- ```
15+
return {
16+
cmd = { 'gnls', '--stdio' },
17+
filetypes = { 'gn' },
18+
root_markers = { '.gn', '.git' },
19+
}

0 commit comments

Comments
 (0)