dotfiles/.config/nvim/lua/plugins/lsp.lua

32 lines
733 B
Lua
Raw Normal View History

2024-07-18 12:00:39 -04:00
return {
{
2024-07-19 09:21:13 -04:00
'VonHeikemen/lsp-zero.nvim',
branch = 'v3.x',
2024-07-18 12:00:39 -04:00
dependencies = {
2024-07-18 13:27:24 -04:00
'neovim/nvim-lspconfig',
2024-07-19 09:21:13 -04:00
'williamboman/mason.nvim',
'williamboman/mason-lspconfig.nvim',
'hrsh7th/nvim-cmp',
'hrsh7th/cmp-nvim-lsp',
'L3MON4D3/LuaSnip',
2024-07-18 13:27:24 -04:00
},
config = function ()
2024-07-19 09:21:13 -04:00
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,
},
})
2024-07-18 13:27:24 -04:00
end
2024-07-18 12:00:39 -04:00
},
}