Replace nvim-cmp and 5 cmp-* plugins with saghen/blink.cmp (v1 stable). blink.cmp bundles LSP, buffer, path, cmdline completion in one plugin with async fuzzy matching and typo resistance. - Preserves keybindings: C-k/C-j nav, C-Space show, C-e abort, CR confirm - No snippets (preset = 'none') - Signature help enabled - Cmdline completion enabled - LazyDev integrated as blink source provider - _shared.lua capabilities updated to use blink.get_lsp_capabilities() - Removes cmp-nvim-lsp dependency from lsp.lua
47 lines
1.3 KiB
Lua
47 lines
1.3 KiB
Lua
-- LSP plugin spec: delegates to language modules for server configuration.
|
|
-- Shared keymaps/on_attach handled by languages/_shared.lua (LspAttach autocmd).
|
|
local languages = require('languages')
|
|
|
|
return {
|
|
"neovim/nvim-lspconfig",
|
|
dependencies = {
|
|
{
|
|
"mason-org/mason.nvim",
|
|
opts = {
|
|
-- Prefer tools installed by the system package manager.
|
|
PATH = "append",
|
|
},
|
|
},
|
|
{
|
|
"mason-org/mason-lspconfig.nvim",
|
|
opts = {
|
|
ensure_installed = languages.mason_packages(),
|
|
-- Servers are enabled explicitly below, including non-Mason servers.
|
|
automatic_enable = false,
|
|
},
|
|
},
|
|
"j-hui/fidget.nvim",
|
|
},
|
|
|
|
config = function()
|
|
-- Load the shared LspAttach autocmd and capabilities.
|
|
require('languages._shared')
|
|
|
|
-- Register and enable every server selected by the machine profile.
|
|
-- Explicit enablement also covers servers supplied outside Mason.
|
|
for name, conf in pairs(languages.servers()) do
|
|
vim.lsp.config(name, conf)
|
|
vim.lsp.enable(name)
|
|
end
|
|
|
|
-- LSP progress indicator
|
|
require('fidget').setup({
|
|
notification = {
|
|
window = {
|
|
avoid = { "NvimTree" },
|
|
},
|
|
},
|
|
})
|
|
end,
|
|
}
|