mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-09-06 10:21:31 +00:00
mini/trailspace: init
This commit is contained in:
parent
ae76778186
commit
0994337d02
7 changed files with 62 additions and 0 deletions
|
@ -38,5 +38,6 @@
|
|||
./surround
|
||||
./tabline
|
||||
./test
|
||||
./trailspace
|
||||
];
|
||||
}
|
||||
|
|
19
modules/plugins/mini/trailspace/config.nix
Normal file
19
modules/plugins/mini/trailspace/config.nix
Normal file
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib.modules) mkIf;
|
||||
inherit (lib.nvim.dag) entryAnywhere;
|
||||
inherit (lib.nvim.lua) toLuaObject;
|
||||
|
||||
cfg = config.vim.mini.trailspace;
|
||||
in {
|
||||
vim = mkIf cfg.enable {
|
||||
startPlugins = ["mini-trailspace"];
|
||||
|
||||
pluginRC.mini-trailspace = entryAnywhere ''
|
||||
require("mini.trailspace").setup(${toLuaObject cfg.setupOpts})
|
||||
'';
|
||||
};
|
||||
}
|
6
modules/plugins/mini/trailspace/default.nix
Normal file
6
modules/plugins/mini/trailspace/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
imports = [
|
||||
./trailspace.nix
|
||||
./config.nix
|
||||
];
|
||||
}
|
13
modules/plugins/mini/trailspace/trailspace.nix
Normal file
13
modules/plugins/mini/trailspace/trailspace.nix
Normal file
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib.options) mkEnableOption mkOption;
|
||||
inherit (lib.nvim.types) mkPluginSetupOption;
|
||||
in {
|
||||
options.vim.mini.trailspace = {
|
||||
enable = mkEnableOption "mini.trailspace";
|
||||
setupOpts = mkPluginSetupOption "mini.trailspace" {};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue