feat: add neovim config
This commit is contained in:
18
nvim/lua/plugins/nvim-lsp.lua
Normal file
18
nvim/lua/plugins/nvim-lsp.lua
Normal file
@@ -0,0 +1,18 @@
|
||||
return {
|
||||
"neovim/nvim-lspconfig",
|
||||
dependencies = { "saghen/blink.cmp" },
|
||||
opts = {
|
||||
servers = {
|
||||
clangd = {},
|
||||
},
|
||||
},
|
||||
config = function(_, opts)
|
||||
local lspconfig = require("lspconfig")
|
||||
for server, config in pairs(opts.servers) do
|
||||
-- passing config.capabilities to blink.cmp merges with the capabilities in your
|
||||
-- `opts[server].capabilities, if you've defined it
|
||||
config.capabilities = require("blink.cmp").get_lsp_capabilities(config.capabilities)
|
||||
lspconfig[server].setup(config)
|
||||
end
|
||||
end,
|
||||
}
|
||||
Reference in New Issue
Block a user