return { { "williamboman/mason.nvim", config = function() require("mason").setup() end, }, { "williamboman/mason-lspconfig.nvim", config = function() require("mason-lspconfig").setup({ ensure_installed = { "lua_ls" }, }) end, }, { "neovim/nvim-lspconfig", config = function() local capabilities = require("cmp_nvim_lsp").default_capabilities() local lspconfig = require("lspconfig") -- lua lspconfig.lua_ls.setup({ capabilities = capabilities, }) vim.keymap.set("n", "K", vim.lsp.buf.hover, {}) vim.keymap.set("n", "gd", vim.lsp.buf.definition, {}) vim.keymap.set({ "n", "v" }, "c", "", { desc = "+code" }) vim.keymap.set({ "n", "v" }, "ca", vim.lsp.buf.code_action, { desc = "action" }) end, }, }