diff --git a/modules/plugins/notes/orgmode/orgmode.nix b/modules/plugins/notes/orgmode/orgmode.nix index 103a1453..fe2c4be8 100644 --- a/modules/plugins/notes/orgmode/orgmode.nix +++ b/modules/plugins/notes/orgmode/orgmode.nix @@ -5,9 +5,9 @@ ... }: let inherit (lib.modules) mkRenamedOptionModule; - inherit (lib.options) mkEnableOption mkOption mkPackageOption; + inherit (lib.options) mkEnableOption mkOption; inherit (lib.types) str listOf; - inherit (lib.nvim.types) mkPluginSetupOption; + inherit (lib.nvim.types) mkGrammarOption mkPluginSetupOption; in { imports = [ (mkRenamedOptionModule ["vim" "notes" "orgmode" "orgAgendaFiles"] ["vim" "notes" "orgmode" "setupOpts" "org_agenda_files"]) @@ -33,9 +33,7 @@ in { treesitter = { enable = mkEnableOption "Orgmode treesitter" // {default = config.vim.languages.enableTreesitter;}; - orgPackage = mkPackageOption pkgs ["org-nvim treesitter"] { - default = ["tree-sitter-grammars" "tree-sitter-org-nvim"]; - }; + orgPackage = mkGrammarOption pkgs "org"; }; }; }