mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
plugins/utils: move to by-name
This commit is contained in:
parent
faff32b9f1
commit
52f125679f
195 changed files with 2 additions and 102 deletions
27
plugins/by-name/autosource/default.nix
Normal file
27
plugins/by-name/autosource/default.nix
Normal file
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (lib.nixvim) defaultNullOpts;
|
||||
in
|
||||
lib.nixvim.vim-plugin.mkVimPlugin {
|
||||
name = "autosource";
|
||||
originalName = "vim-autosource";
|
||||
package = "vim-autosource";
|
||||
globalPrefix = "autosource_";
|
||||
|
||||
maintainers = [ lib.nixvim.maintainers.refaelsh ];
|
||||
|
||||
settingsOptions = {
|
||||
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 = 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.
|
||||
'';
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue