aboutsummaryrefslogtreecommitdiff
path: root/.config/nvim/lsp/gnls.lua
blob: be39e440488eb40b0925dc4a274c98f29eceff31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
---@brief
---
--- 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 $@
--- ```

---@type vim.lsp.Config
return {
  cmd = { 'gnls', '--stdio' },
  filetypes = { 'gn' },
  root_markers = { '.gn', '.git' },
}