Ignore compiled lua, add lua lsp

This commit is contained in:
Mariano Uvalle 2022-12-13 12:20:32 -08:00
parent 49249bac48
commit 2e869c9317
2 changed files with 6 additions and 3 deletions

1
.gitignore vendored
View file

@ -3,3 +3,4 @@ lang-srvrs/**/*
.netrwhist .netrwhist
packer_compiled.vim packer_compiled.vim
packer_compiled.lua

View file

@ -15,7 +15,6 @@ else
end end
require'lspconfig'.sumneko_lua.setup { require'lspconfig'.sumneko_lua.setup {
cmd = {sumneko_binary, "-E", sumneko_root_path .. "/main.lua"},
settings = { settings = {
Lua = { Lua = {
runtime = { runtime = {
@ -30,8 +29,11 @@ require'lspconfig'.sumneko_lua.setup {
}, },
workspace = { workspace = {
-- Make the server aware of Neovim runtime files -- 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,
},
} }
} }
} }