mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-09-06 10:21:31 +00:00
utility/sleuth: init
This commit is contained in:
parent
43421d5612
commit
8f73019907
6 changed files with 40 additions and 0 deletions
10
modules/plugins/utility/sleuth/config.nix
Normal file
10
modules/plugins/utility/sleuth/config.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib.modules) mkIf;
|
||||
cfg = config.vim.utility.sleuth;
|
||||
in {
|
||||
vim.startPlugins = mkIf cfg.enable ["vim-sleuth"];
|
||||
}
|
6
modules/plugins/utility/sleuth/default.nix
Normal file
6
modules/plugins/utility/sleuth/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
imports = [
|
||||
./config.nix
|
||||
./sleuth.nix
|
||||
];
|
||||
}
|
7
modules/plugins/utility/sleuth/sleuth.nix
Normal file
7
modules/plugins/utility/sleuth/sleuth.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{lib, ...}: let
|
||||
inherit (lib.options) mkEnableOption;
|
||||
in {
|
||||
options.vim.utility.sleuth.enable = mkEnableOption ''
|
||||
automatically adjusting options such as `shiftwidth` or `expandtab`, using `vim-sleuth`
|
||||
'';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue