mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-15 07:02:58 +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 = {
|
options.plugins.nvim-cmp = {
|
||||||
enable = mkEnableOption "Enable 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 {
|
performance = mkOption {
|
||||||
default = null;
|
default = null;
|
||||||
type = types.nullOr (types.submodule ({ ... }: {
|
type = types.nullOr (types.submodule ({ ... }: {
|
||||||
|
@ -394,7 +400,7 @@ in
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
mkIf cfg.enable {
|
mkIf cfg.enable {
|
||||||
extraPlugins = [ pkgs.vimPlugins.nvim-cmp ];
|
extraPlugins = [ cfg.package ];
|
||||||
|
|
||||||
extraConfigLua = helpers.wrapDo ''
|
extraConfigLua = helpers.wrapDo ''
|
||||||
local cmp = require('cmp')
|
local cmp = require('cmp')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue