mini/trailspace: init

This commit is contained in:
LilleAila 2025-01-17 21:23:56 +01:00
parent ae76778186
commit 0994337d02
No known key found for this signature in database
GPG key ID: D1ACCDCF2B9B9799
7 changed files with 62 additions and 0 deletions

View file

@ -92,6 +92,7 @@
- `mini.surround` - `mini.surround`
- `mini.tabline` - `mini.tabline`
- `mini.test` - `mini.test`
- `mini.trailspace`
[kaktu5](https://github.com/kaktu5): [kaktu5](https://github.com/kaktu5):

View file

@ -1544,6 +1544,22 @@
"type": "github" "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": { "plugin-minimap-vim": {
"flake": false, "flake": false,
"locked": { "locked": {
@ -2778,6 +2794,7 @@
"plugin-mini-surround": "plugin-mini-surround", "plugin-mini-surround": "plugin-mini-surround",
"plugin-mini-tabline": "plugin-mini-tabline", "plugin-mini-tabline": "plugin-mini-tabline",
"plugin-mini-test": "plugin-mini-test", "plugin-mini-test": "plugin-mini-test",
"plugin-mini-trailspace": "plugin-mini-trailspace",
"plugin-minimap-vim": "plugin-minimap-vim", "plugin-minimap-vim": "plugin-minimap-vim",
"plugin-modes-nvim": "plugin-modes-nvim", "plugin-modes-nvim": "plugin-modes-nvim",
"plugin-neo-tree-nvim": "plugin-neo-tree-nvim", "plugin-neo-tree-nvim": "plugin-neo-tree-nvim",

View file

@ -935,5 +935,10 @@
url = "github:echasnovski/mini.test"; url = "github:echasnovski/mini.test";
flake = false; flake = false;
}; };
plugin-mini-trailspace = {
url = "github:echasnovski/mini.trailspace";
flake = false;
};
}; };
} }

View file

@ -38,5 +38,6 @@
./surround ./surround
./tabline ./tabline
./test ./test
./trailspace
]; ];
} }

View 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})
'';
};
}

View file

@ -0,0 +1,6 @@
{
imports = [
./trailspace.nix
./config.nix
];
}

View 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" {};
};
}