nix-community.nixvim/plugins/by-name/autosource/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
820 B
Nix
Raw Normal View History

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";
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 = {
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.
'';
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.
'';
};
}