mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-01-19 16:32:24 +00:00
mini/trailspace: init
This commit is contained in:
parent
ae76778186
commit
0994337d02
7 changed files with 62 additions and 0 deletions
|
@ -92,6 +92,7 @@
|
|||
- `mini.surround`
|
||||
- `mini.tabline`
|
||||
- `mini.test`
|
||||
- `mini.trailspace`
|
||||
|
||||
[kaktu5](https://github.com/kaktu5):
|
||||
|
||||
|
|
17
flake.lock
17
flake.lock
|
@ -1544,6 +1544,22 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"plugin-mini-trailspace": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1725613928,
|
||||
"narHash": "sha256-JKYvFz8g8kVZvxE44RhwoHXQykghXx7ebW/Mj1ZdJIw=",
|
||||
"owner": "echasnovski",
|
||||
"repo": "mini.trailspace",
|
||||
"rev": "3a328e62559c33014e422fb9ae97afc4208208b1",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "echasnovski",
|
||||
"repo": "mini.trailspace",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"plugin-minimap-vim": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
|
@ -2778,6 +2794,7 @@
|
|||
"plugin-mini-surround": "plugin-mini-surround",
|
||||
"plugin-mini-tabline": "plugin-mini-tabline",
|
||||
"plugin-mini-test": "plugin-mini-test",
|
||||
"plugin-mini-trailspace": "plugin-mini-trailspace",
|
||||
"plugin-minimap-vim": "plugin-minimap-vim",
|
||||
"plugin-modes-nvim": "plugin-modes-nvim",
|
||||
"plugin-neo-tree-nvim": "plugin-neo-tree-nvim",
|
||||
|
|
|
@ -935,5 +935,10 @@
|
|||
url = "github:echasnovski/mini.test";
|
||||
flake = false;
|
||||
};
|
||||
|
||||
plugin-mini-trailspace = {
|
||||
url = "github:echasnovski/mini.trailspace";
|
||||
flake = false;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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…
Reference in a new issue