mirror of
https://github.com/neovim/nvim-lspconfig.git
synced 2025-12-24 15:01:00 +01:00
22 lines
443 B
Lua
22 lines
443 B
Lua
---@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' },
|
|
}
|