mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 11:39:46 +01:00
neovim/coc: add package option
This commit is contained in:
parent
02b15de8ad
commit
70289d406c
1 changed files with 8 additions and 1 deletions
|
@ -66,7 +66,7 @@ let
|
||||||
|
|
||||||
allPlugins = cfg.plugins ++ optional cfg.coc.enable {
|
allPlugins = cfg.plugins ++ optional cfg.coc.enable {
|
||||||
type = "viml";
|
type = "viml";
|
||||||
plugin = pkgs.vimPlugins.coc-nvim;
|
plugin = cfg.coc.package;
|
||||||
config = cfg.coc.pluginConfig;
|
config = cfg.coc.pluginConfig;
|
||||||
optional = false;
|
optional = false;
|
||||||
};
|
};
|
||||||
|
@ -302,6 +302,13 @@ in {
|
||||||
coc = {
|
coc = {
|
||||||
enable = mkEnableOption "Coc";
|
enable = mkEnableOption "Coc";
|
||||||
|
|
||||||
|
package = mkOption {
|
||||||
|
type = types.package;
|
||||||
|
default = pkgs.vimPlugins.coc-nvim;
|
||||||
|
defaultText = literalExpression "pkgs.vimPlugins.coc-nvim";
|
||||||
|
description = "The package to use for the CoC plugin.";
|
||||||
|
};
|
||||||
|
|
||||||
settings = mkOption {
|
settings = mkOption {
|
||||||
type = jsonFormat.type;
|
type = jsonFormat.type;
|
||||||
default = { };
|
default = { };
|
||||||
|
|
Loading…
Reference in a new issue