dotfiles/.config/nvim/lua/plugins/lsp.lua

21 lines
569 B
Lua
Raw Normal View History

2024-03-15 17:42:23 +01:00
return {
"neovim/nvim-lspconfig",
2024-12-27 14:57:03 +01:00
dependencies = { "saghen/blink.cmp" },
opts = {
2024-12-27 14:57:03 +01:00
inlay_hints = { enabled = false },
servers = {
2024-12-27 14:57:03 +01:00
lua_ls = {},
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
}