diff options
Diffstat (limited to 'lsp/lua.lua')
| -rw-r--r-- | lsp/lua.lua | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/lsp/lua.lua b/lsp/lua.lua new file mode 100644 index 0000000..4d3e241 --- /dev/null +++ b/lsp/lua.lua @@ -0,0 +1,24 @@ +return { + cmd = { "lua-language-server" }, + filetypes = { "lua" }, + root_markers = { ".luarc.json" }, + settings = { + Lua = { + runtime = { + version = "LuaJIT", + }, + diagnostics = { + globals = { + "vim", + "require", + }, + }, + workspace = { + library = vim.api.nvim_get_runtime_file("", true), + }, + telemetry = { + enable = false, + }, + }, + }, +} |
