Update config/nvim/lua/plugins/lsp.lua
This commit is contained in:
parent
53be73ceca
commit
500b95842c
@ -20,7 +20,7 @@ end)
|
||||
-- read this: https://github.com/VonHeikemen/lsp-zero.nvim/blob/v3.x/doc/md/guides/integrate-with-mason-nvim.md
|
||||
require('mason').setup({})
|
||||
require('mason-lspconfig').setup({
|
||||
ensure_installed = {'tsserver','dockerls','lua_ls','terraformls','pyright','gopls'},
|
||||
ensure_installed = {'tsserver','dockerls','lua_ls','terraformls','pyright','gopls','volar'},
|
||||
handlers = {
|
||||
function(server_name)
|
||||
require('lspconfig')[server_name].setup({})
|
||||
@ -36,7 +36,7 @@ cmp.setup({
|
||||
{name = 'nvim_lsp'},
|
||||
},
|
||||
mapping = {
|
||||
['<C-e>'] = cmp.mapping.confirm({select = false}),
|
||||
['<CR>'] = cmp.mapping.confirm({select = false}),
|
||||
['<C-q>'] = cmp.mapping.abort(),
|
||||
['<Up>'] = cmp.mapping.select_prev_item({behavior = 'select'}),
|
||||
['<Down>'] = cmp.mapping.select_next_item({behavior = 'select'}),
|
||||
|
Loading…
Reference in New Issue
Block a user