28 lines
658 B
Lua
28 lines
658 B
Lua
return {
|
|
{
|
|
"neovim/nvim-lspconfig",
|
|
lazy = false,
|
|
config = function()
|
|
vim.keymap.set("n", "K", vim.lsp.buf.hover, {})
|
|
vim.keymap.set("n", "<leader>gd", vim.lsp.buf.definition, {})
|
|
vim.keymap.set("n", "<leader>gr", vim.lsp.buf.references, {})
|
|
vim.keymap.set("n", "<leader>ca", vim.lsp.buf.code_action, {})
|
|
vim.keymap.set("n", '<leader>rn', vim.lsp.buf.rename, {})
|
|
end,
|
|
},
|
|
{
|
|
"williamboman/mason.nvim",
|
|
lazy = false,
|
|
config = function()
|
|
require("mason").setup()
|
|
end
|
|
},
|
|
{
|
|
"williamboman/mason-lspconfig.nvim",
|
|
lazy = false,
|
|
opts = {
|
|
auto_install = true,
|
|
},
|
|
}
|
|
}
|