switch to lua ls

This commit is contained in:
Jidbo 2023-02-23 15:25:27 +01:00 committed by saibotk
parent fa0957ddc6
commit f9a922636d
Signed by: saibotk
GPG key ID: 67585F0065E261D5

View file

@ -78,12 +78,24 @@ for _, server in ipairs(lsp_installer.get_installed_servers()) do
end end
-- EXTRA SETUP -- EXTRA SETUP
lspconfig.sumneko_lua.setup { require'lspconfig'.lua_ls.setup {
settings = { settings = {
Lua = { Lua = {
runtime = {
-- Tell the language server which version of Lua you're using (most likely LuaJIT in the case of Neovim)
version = 'LuaJIT',
},
diagnostics = { diagnostics = {
-- Get the language server to recognize the `vim` global -- Get the language server to recognize the `vim` global
globals = { 'vim' }, globals = {'vim'},
},
workspace = {
-- Make the server aware of Neovim runtime files
library = vim.api.nvim_get_runtime_file("", true),
},
-- Do not send telemetry data containing a randomized but unique identifier
telemetry = {
enable = false,
}, },
}, },
}, },