dotfiles/.config/nvim/lua/plugins/lsp.lua
2024-07-19 09:26:58 -04:00

31 lines
733 B
Lua

return {
{
'VonHeikemen/lsp-zero.nvim',
branch = 'v3.x',
dependencies = {
'neovim/nvim-lspconfig',
'williamboman/mason.nvim',
'williamboman/mason-lspconfig.nvim',
'hrsh7th/nvim-cmp',
'hrsh7th/cmp-nvim-lsp',
'L3MON4D3/LuaSnip',
},
config = function ()
local lsp_zero = require('lsp-zero')
lsp_zero.on_attach(function (client, bufnr)
lsp_zero.default_keymaps({ buffer = bufnr })
end)
require('mason').setup({})
require('mason-lspconfig').setup({
ensure_installed = {},
handlers = {
function (server_name)
require('lspconfig')[server_name].setup({})
end,
},
})
end
},
}