switch to lua ls
This commit is contained in:
parent
fa0957ddc6
commit
f9a922636d
1 changed files with 14 additions and 2 deletions
|
@ -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,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Reference in a new issue