41 lines
991 B
Lua
41 lines
991 B
Lua
return {
|
|
{
|
|
"smjonas/inc-rename.nvim",
|
|
opts = {}
|
|
},
|
|
{
|
|
"dundalek/lazy-lsp.nvim",
|
|
dependencies = {
|
|
"neovim/nvim-lspconfig",
|
|
{ "VonHeikemen/lsp-zero.nvim", branch = "v3.x" },
|
|
"hrsh7th/cmp-nvim-lsp",
|
|
"hrsh7th/nvim-cmp",
|
|
},
|
|
config = function()
|
|
local lsp_zero = require("lsp-zero")
|
|
|
|
lsp_zero.on_attach(function(_client, bufnr)
|
|
-- see :help lsp-zero-keybindings to learn the available actions
|
|
lsp_zero.default_keymaps({
|
|
buffer = bufnr,
|
|
preserve_mappings = false
|
|
})
|
|
end)
|
|
|
|
require("lazy-lsp").setup {}
|
|
end,
|
|
},
|
|
{
|
|
"lukas-reineke/lsp-format.nvim",
|
|
config = function()
|
|
require("lsp-format").setup {}
|
|
|
|
vim.api.nvim_create_autocmd('LspAttach', {
|
|
callback = function(args)
|
|
local client = assert(vim.lsp.get_client_by_id(args.data.client_id))
|
|
require("lsp-format").on_attach(client, args.buf)
|
|
end,
|
|
})
|
|
end,
|
|
},
|
|
}
|