36 lines
814 B
Lua
36 lines
814 B
Lua
return {
|
|
{
|
|
"neovim/nvim-lspconfig",
|
|
dependencies= {},
|
|
config = function()
|
|
local lspconfig = require("lspconfig")
|
|
lspconfig.lua_ls.setup({})
|
|
|
|
vim.keymap.set('n', 'K', vim.lsp.buf.hover, {})
|
|
vim.keymap.set('n', 'gd', vim.lsp.buf.definition, {})
|
|
vim.keymap.set({'n', 'v'}, '<space>ca', vim.lsp.buf.code_action, {})
|
|
end,
|
|
},
|
|
{
|
|
"williamboman/mason.nvim",
|
|
dependencies = {},
|
|
opts = {
|
|
ui = {
|
|
icons = {
|
|
package_installed = "✓",
|
|
package_pending = "➜",
|
|
package_uninstalled = "✗"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"williamboman/mason-lspconfig.nvim",
|
|
dependencies = {},
|
|
config = function()
|
|
require("mason-lspconfig").setup {
|
|
ensure_installed = { "lua_ls" },
|
|
}
|
|
end,
|
|
}
|
|
}
|