mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-07 11:25:06 +02:00
null-ls: package option
This commit is contained in:
parent
097d95d9d7
commit
ac8293d806
1 changed files with 7 additions and 1 deletions
|
@ -12,6 +12,12 @@ in
|
|||
options.plugins.null-ls = {
|
||||
enable = mkEnableOption "Enable null-ls";
|
||||
|
||||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.vimPlugins.null-ls-nvim;
|
||||
description = "Plugin to use for null-ls";
|
||||
};
|
||||
|
||||
debug = mkOption {
|
||||
default = null;
|
||||
type = with types; nullOr bool;
|
||||
|
@ -38,7 +44,7 @@ in
|
|||
};
|
||||
in
|
||||
mkIf cfg.enable {
|
||||
extraPlugins = with pkgs.vimPlugins; [ null-ls-nvim ];
|
||||
extraPlugins = [ cfg.package ];
|
||||
|
||||
extraConfigLua = ''
|
||||
require("null-ls").setup(${helpers.toLuaObject options})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue