diff --git a/plugins/utils/autosource.nix b/plugins/utils/autosource.nix index 8e15395a..db22fa8b 100644 --- a/plugins/utils/autosource.nix +++ b/plugins/utils/autosource.nix @@ -4,10 +4,6 @@ }: let inherit (lib.nixvim) defaultNullOpts; - mkBoolInt = defaultNullOpts.mkEnum [ - 0 - 1 - ]; in lib.nixvim.vim-plugin.mkVimPlugin { name = "autosource"; @@ -18,12 +14,12 @@ lib.nixvim.vim-plugin.mkVimPlugin { maintainers = [ lib.nixvim.maintainers.refaelsh ]; settingsOptions = { - prompt_for_new_file = mkBoolInt 1 '' + prompt_for_new_file = defaultNullOpts.mkFlagInt 1 '' The primary use-case of this option is to support automated testing. When set to false AutoSource will not prompt you when it detects a new file. The file will *NOT* be sourced. ''; - prompt_for_changed_file = mkBoolInt 1 '' + prompt_for_changed_file = defaultNullOpts.mkFlagInt 1 '' The primary use-case of this option is to support automated testing. When set to false AutoSource will not prompt you when it detects when a file is changed. The file will NOT be sourced. '';