mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-05 06:44:33 +02:00
Some checks are pending
Publish every Git push to main to FlakeHub / flakehub-publish (push) Waiting to run
Publish every git push to Flakestry / publish-flake (push) Waiting to run
Documentation / Version info (push) Waiting to run
Documentation / Build (push) Blocked by required conditions
Documentation / Combine builds (push) Blocked by required conditions
Documentation / Deploy (push) Blocked by required conditions
28 lines
896 B
Nix
28 lines
896 B
Nix
{
|
|
lib,
|
|
...
|
|
}:
|
|
let
|
|
inherit (lib.nixvim) defaultNullOpts;
|
|
in
|
|
lib.nixvim.plugins.mkVimPlugin {
|
|
name = "autosource";
|
|
packPathName = "vim-autosource";
|
|
package = "vim-autosource";
|
|
globalPrefix = "autosource_";
|
|
description = "A Vim plugin that enables per project Vim configuration.";
|
|
|
|
maintainers = [ lib.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.
|
|
'';
|
|
};
|
|
}
|