mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-24 09:48:42 +02:00
plugins/autosource: mkBoolInt
-> mkFlagInt
This commit is contained in:
parent
934484709a
commit
475dca6895
1 changed files with 2 additions and 6 deletions
|
@ -4,10 +4,6 @@
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
inherit (lib.nixvim) defaultNullOpts;
|
inherit (lib.nixvim) defaultNullOpts;
|
||||||
mkBoolInt = defaultNullOpts.mkEnum [
|
|
||||||
0
|
|
||||||
1
|
|
||||||
];
|
|
||||||
in
|
in
|
||||||
lib.nixvim.vim-plugin.mkVimPlugin {
|
lib.nixvim.vim-plugin.mkVimPlugin {
|
||||||
name = "autosource";
|
name = "autosource";
|
||||||
|
@ -18,12 +14,12 @@ lib.nixvim.vim-plugin.mkVimPlugin {
|
||||||
maintainers = [ lib.nixvim.maintainers.refaelsh ];
|
maintainers = [ lib.nixvim.maintainers.refaelsh ];
|
||||||
|
|
||||||
settingsOptions = {
|
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.
|
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.
|
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.
|
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.
|
When set to false AutoSource will not prompt you when it detects when a file is changed. The file will NOT be sourced.
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue