Ignore compiled lua, add lua lsp
This commit is contained in:
parent
49249bac48
commit
2e869c9317
2 changed files with 6 additions and 3 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -3,3 +3,4 @@ lang-srvrs/**/*
|
|||
.netrwhist
|
||||
|
||||
packer_compiled.vim
|
||||
packer_compiled.lua
|
||||
|
|
|
|||
|
|
@ -15,7 +15,6 @@ else
|
|||
end
|
||||
|
||||
require'lspconfig'.sumneko_lua.setup {
|
||||
cmd = {sumneko_binary, "-E", sumneko_root_path .. "/main.lua"},
|
||||
settings = {
|
||||
Lua = {
|
||||
runtime = {
|
||||
|
|
@ -30,8 +29,11 @@ require'lspconfig'.sumneko_lua.setup {
|
|||
},
|
||||
workspace = {
|
||||
-- Make the server aware of Neovim runtime files
|
||||
library = {[vim.fn.expand('$VIMRUNTIME/lua')] = true, [vim.fn.expand('$VIMRUNTIME/lua/vim/lsp')] = true}
|
||||
}
|
||||
library = vim.api.nvim_get_runtime_file("", true),
|
||||
},
|
||||
telemetry = {
|
||||
enable = false,
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue