mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-14 06:38:44 +02:00
nvim-cmp: package option
This commit is contained in:
parent
5685547d62
commit
99d27eae6b
1 changed files with 7 additions and 1 deletions
|
@ -17,6 +17,12 @@ in
|
|||
options.plugins.nvim-cmp = {
|
||||
enable = mkEnableOption "Enable nvim-cmp";
|
||||
|
||||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.vimPlugins.nvim-cmp;
|
||||
description = "Plugin to use for nvim-cmp";
|
||||
};
|
||||
|
||||
performance = mkOption {
|
||||
default = null;
|
||||
type = types.nullOr (types.submodule ({ ... }: {
|
||||
|
@ -394,7 +400,7 @@ in
|
|||
};
|
||||
in
|
||||
mkIf cfg.enable {
|
||||
extraPlugins = [ pkgs.vimPlugins.nvim-cmp ];
|
||||
extraPlugins = [ cfg.package ];
|
||||
|
||||
extraConfigLua = helpers.wrapDo ''
|
||||
local cmp = require('cmp')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue