removed luasnippet, fixed lsp keybinds.

This commit is contained in:
Gabe Venberg 2021-12-15 11:30:08 -06:00
parent 8322dfa4e1
commit d80d290fe2
4 changed files with 14 additions and 19 deletions

View file

@ -36,6 +36,7 @@ end
-- map buffer local keybindings when the language server attaches
local servers = { 'pyright', 'rust_analyzer', 'texlab'}
for _, lsp in ipairs(servers) do
on_attach()
nvim_lsp[lsp].setup {
flags = {
debounce_text_changes = 150,
@ -43,11 +44,11 @@ for _, lsp in ipairs(servers) do
}
end
on_attach()
--lua-language-server needs seperate config.
local runtime_path = vim.split(package.path, ';')
table.insert(runtime_path, "lua/?.lua")
table.insert(runtime_path, "lua/?/init.lua")
on_attach()
require'lspconfig'.sumneko_lua.setup {
settings = {
Lua = {