mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
blink-cmp: Set lsp capabilities
Co-authored-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
parent
a5147a36f9
commit
f2f70b4376
2 changed files with 24 additions and 0 deletions
|
@ -42,4 +42,20 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
};
|
};
|
||||||
signature.enabled = true;
|
signature.enabled = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
extraOptions = {
|
||||||
|
setupLspCapabilities = lib.nixvim.options.mkEnabledOption "LSP capabilities for blink-cmp";
|
||||||
|
};
|
||||||
|
|
||||||
|
extraConfig = cfg: {
|
||||||
|
# TODO: On Neovim 0.11+ and Blink.cmp 0.10+ with vim.lsp.config, you may skip this step.
|
||||||
|
# This is still required when using nvim-lspconfig, until this issue is completed:
|
||||||
|
# https://github.com/neovim/nvim-lspconfig/issues/3494
|
||||||
|
plugins.lsp.capabilities =
|
||||||
|
lib.mkIf cfg.setupLspCapabilities # lua
|
||||||
|
''
|
||||||
|
-- Capabilities configuration for blink-cmp
|
||||||
|
capabilities = require("blink-cmp").get_lsp_capabilities(capabilities)
|
||||||
|
'';
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -406,4 +406,12 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
lsp-compat = {
|
||||||
|
plugins.blink-cmp = {
|
||||||
|
enable = true;
|
||||||
|
setupLspCapabilities = true;
|
||||||
|
};
|
||||||
|
plugins.lsp.enable = true;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue