switch to lua ls
This commit is contained in:
parent
fa0957ddc6
commit
f9a922636d
1 changed files with 14 additions and 2 deletions
|
@ -78,13 +78,25 @@ for _, server in ipairs(lsp_installer.get_installed_servers()) do
|
|||
end
|
||||
|
||||
-- EXTRA SETUP
|
||||
lspconfig.sumneko_lua.setup {
|
||||
require'lspconfig'.lua_ls.setup {
|
||||
settings = {
|
||||
Lua = {
|
||||
runtime = {
|
||||
-- Tell the language server which version of Lua you're using (most likely LuaJIT in the case of Neovim)
|
||||
version = 'LuaJIT',
|
||||
},
|
||||
diagnostics = {
|
||||
-- Get the language server to recognize the `vim` global
|
||||
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,
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue