2024-09-05 21:38:54 +03:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
let
|
|
|
|
inherit (lib.nixvim) defaultNullOpts;
|
|
|
|
in
|
2024-12-22 09:58:27 +00:00
|
|
|
lib.nixvim.plugins.mkVimPlugin {
|
2024-09-05 21:38:54 +03:00
|
|
|
name = "autosource";
|
2024-12-13 08:27:14 -06:00
|
|
|
packPathName = "vim-autosource";
|
2024-09-05 21:38:54 +03:00
|
|
|
package = "vim-autosource";
|
|
|
|
globalPrefix = "autosource_";
|
|
|
|
|
2024-09-27 05:28:00 +01:00
|
|
|
maintainers = [ lib.maintainers.refaelsh ];
|
2024-09-05 21:38:54 +03:00
|
|
|
|
|
|
|
settingsOptions = {
|
2024-09-08 13:59:19 +01:00
|
|
|
prompt_for_new_file = defaultNullOpts.mkFlagInt 1 ''
|
2024-09-05 21:38:54 +03:00
|
|
|
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.
|
|
|
|
'';
|
|
|
|
|
2024-09-08 13:59:19 +01:00
|
|
|
prompt_for_changed_file = defaultNullOpts.mkFlagInt 1 ''
|
2024-09-05 21:38:54 +03:00
|
|
|
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.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|