2024-03-15 17:42:23 +01:00
|
|
|
return {
|
2024-05-26 12:08:35 +02:00
|
|
|
"neovim/nvim-lspconfig",
|
2024-12-27 14:57:03 +01:00
|
|
|
dependencies = { "saghen/blink.cmp" },
|
2024-05-26 12:08:35 +02:00
|
|
|
opts = {
|
2024-12-27 14:57:03 +01:00
|
|
|
inlay_hints = { enabled = false },
|
2024-05-26 12:08:35 +02:00
|
|
|
servers = {
|
2024-12-27 14:57:03 +01:00
|
|
|
lua_ls = {},
|
2024-05-26 12:08:35 +02:00
|
|
|
pyright = {
|
|
|
|
autostart = false,
|
|
|
|
},
|
|
|
|
},
|
2024-03-15 17:42:23 +01:00
|
|
|
},
|
2024-12-27 14:57:03 +01:00
|
|
|
config = function(_, opts)
|
|
|
|
local lspconfig = require("lspconfig")
|
|
|
|
for server, config in pairs(opts.servers) do
|
|
|
|
config.capabilities = require("blink.cmp").get_lsp_capabilities(config.capabilities)
|
|
|
|
lspconfig[server].setup(config)
|
|
|
|
end
|
|
|
|
end,
|
2024-03-15 17:42:23 +01:00
|
|
|
}
|