2024-02-21 04:09:18 +00:00
|
|
|
return {
|
|
|
|
"neovim/nvim-lspconfig",
|
|
|
|
dependencies = {
|
|
|
|
-- Portable package manager
|
|
|
|
"williamboman/mason.nvim",
|
|
|
|
"williamboman/mason-lspconfig.nvim",
|
|
|
|
},
|
2023-12-12 12:16:58 +00:00
|
|
|
|
2024-02-21 04:09:18 +00:00
|
|
|
init = function()
|
|
|
|
local capabilities = require("cmp_nvim_lsp").default_capabilities() -- needed for nvim-cmp
|
|
|
|
require("mason").setup()
|
|
|
|
require("mason-lspconfig").setup()
|
2023-12-12 12:16:58 +00:00
|
|
|
|
2024-02-21 04:09:18 +00:00
|
|
|
-- lspconfig
|
|
|
|
require("lspconfig").lua_ls.setup({
|
|
|
|
capabilities = capabilities,
|
|
|
|
})
|
|
|
|
|
2024-07-28 15:47:20 +00:00
|
|
|
require("lspconfig").pyright.setup({
|
|
|
|
capabilities = capabilities,
|
|
|
|
})
|
|
|
|
|
2024-02-21 04:09:18 +00:00
|
|
|
require("lspconfig").nil_ls.setup({
|
|
|
|
capabilities = capabilities,
|
|
|
|
})
|
2024-08-30 20:48:49 +00:00
|
|
|
|
|
|
|
require("lspconfig").gopls.setup({
|
|
|
|
capabilities = capabilities,
|
|
|
|
})
|
2024-02-21 04:09:18 +00:00
|
|
|
end,
|
|
|
|
}
|