nvim: lsp: fix lua server and enable more completion

This commit is contained in:
tastytea 2022-08-12 14:52:24 +02:00
parent 1bdf20f840
commit e573868c18
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM

View File

@ -79,7 +79,7 @@ packer.use {
} }
end end
if vim.fn.executable('lua-language-server' > 0) then if vim.fn.executable('lua-language-server') > 0 then
require'lspconfig'.sumneko_lua.setup { require'lspconfig'.sumneko_lua.setup {
settings = { settings = {
Lua = { Lua = {
@ -95,6 +95,10 @@ packer.use {
telemetry = { telemetry = {
enable = false, enable = false,
}, },
completion = {
-- complete full function signature
callSnippet = 'Replace',
},
}, },
}, },
on_attach = on_attach, on_attach = on_attach,