diff options
| author | Brahmajit Das <listout@listout.xyz> | 2025-12-06 14:37:12 +0000 |
|---|---|---|
| committer | Brahmajit Das <listout@listout.xyz> | 2025-12-06 14:37:12 +0000 |
| commit | 038525a843c0461abf4d98943bce236378abc522 (patch) | |
| tree | 4c6105e1445795109e6dbc82a5d0b57fcf1828be /lsp/lua_ls.lua | |
| parent | 4c16bb4ed32dc894e5e0cf5b55e936b338b2046d (diff) | |
| download | nvim-038525a843c0461abf4d98943bce236378abc522.tar.gz | |
lsp: move LSP client configuration to recommended folder
refer https://neovim.io/doc/user/options.html#'runtimepath'
Signed-off-by: Brahmajit Das <listout@listout.xyz>
Diffstat (limited to 'lsp/lua_ls.lua')
| -rw-r--r-- | lsp/lua_ls.lua | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/lsp/lua_ls.lua b/lsp/lua_ls.lua new file mode 100644 index 0000000..104ffbb --- /dev/null +++ b/lsp/lua_ls.lua @@ -0,0 +1,22 @@ +return { + -- Command and arguments to start the server. + cmd = { 'lua-language-server' }, + -- Filetypes to automatically attach to. + filetypes = { 'lua' }, + -- Sets the "root directory" to the parent directory of the file in the + -- current buffer that contains either a ".luarc.json" or a + -- ".luarc.jsonc" file. Files that share a root directory will reuse + -- the connection to the same LSP server. + -- Nested lists indicate equal priority, see |vim.lsp.Config|. + root_markers = { { '.luarc.json', '.luarc.jsonc' }, '.git' }, + -- Specific settings to send to the server. The schema for this is + -- defined by the server. For example the schema for lua-language-server + -- can be found here https://raw.githubusercontent.com/LuaLS/vscode-lua/master/setting/schema.json + settings = { + Lua = { + runtime = { + version = 'LuaJIT', + } + } + } +} |
