mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 16:39:00 +02:00
plugins/treesitter: re-organize treesitter plugins
This commit is contained in:
parent
f79dccdc2e
commit
ff791d20c8
7 changed files with 12 additions and 8 deletions
|
@ -5,7 +5,7 @@
|
|||
...
|
||||
}:
|
||||
with lib; let
|
||||
helpers = import ../helpers.nix {inherit lib;};
|
||||
helpers = import ../../helpers.nix {inherit lib;};
|
||||
in {
|
||||
options.plugins.treesitter-context = {
|
||||
enable = mkEnableOption "nvim-treesitter-context";
|
|
@ -5,7 +5,7 @@
|
|||
...
|
||||
}:
|
||||
with lib; let
|
||||
helpers = import ../helpers.nix {inherit lib;};
|
||||
helpers = import ../../helpers.nix {inherit lib;};
|
||||
|
||||
inherit (helpers) mkPackageOption mkCompositeOption;
|
||||
inherit (helpers.defaultNullOpts) mkInt mkBool mkStr mkNullable;
|
|
@ -5,7 +5,7 @@
|
|||
...
|
||||
}:
|
||||
with lib; let
|
||||
helpers = import ../helpers.nix {inherit lib;};
|
||||
helpers = import ../../helpers.nix {inherit lib;};
|
||||
in {
|
||||
options.plugins.treesitter-refactor = let
|
||||
disable = mkOption {
|
||||
|
@ -104,6 +104,10 @@ in {
|
|||
cfg = config.plugins.treesitter-refactor;
|
||||
in
|
||||
mkIf cfg.enable {
|
||||
warnings = mkIf (!config.plugins.treesitter.enable) [
|
||||
"Nixvim: treesitter-refactor needs treesitter to function as intended"
|
||||
];
|
||||
|
||||
extraPlugins = [cfg.package];
|
||||
|
||||
plugins.treesitter.moduleConfig.refactor = {
|
|
@ -6,7 +6,7 @@
|
|||
}:
|
||||
with lib; let
|
||||
cfg = config.plugins.treesitter;
|
||||
helpers = import ../helpers.nix {inherit lib;};
|
||||
helpers = import ../../helpers.nix {inherit lib;};
|
||||
in {
|
||||
options = {
|
||||
plugins.treesitter = {
|
Loading…
Add table
Add a link
Reference in a new issue