mini/visits: init

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

View file

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

View file

@ -1560,6 +1560,22 @@
"type": "github" "type": "github"
} }
}, },
"plugin-mini-visits": {
"flake": false,
"locked": {
"lastModified": 1737036221,
"narHash": "sha256-Q+m1gZ5Obu6Zzo87Djt6VCX76ZjdOiLb0j771jP8uQE=",
"owner": "echasnovski",
"repo": "mini.visits",
"rev": "90f20ba6ab7d3d7cb984fffddd82f5f6c7a6bea7",
"type": "github"
},
"original": {
"owner": "echasnovski",
"repo": "mini.visits",
"type": "github"
}
},
"plugin-minimap-vim": { "plugin-minimap-vim": {
"flake": false, "flake": false,
"locked": { "locked": {
@ -2795,6 +2811,7 @@
"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-mini-trailspace": "plugin-mini-trailspace",
"plugin-mini-visits": "plugin-mini-visits",
"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

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

View file

@ -39,5 +39,6 @@
./tabline ./tabline
./test ./test
./trailspace ./trailspace
./visits
]; ];
} }

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.visits;
in {
vim = mkIf cfg.enable {
startPlugins = ["mini-visits"];
pluginRC.mini-visits = entryAnywhere ''
require("mini.visits").setup(${toLuaObject cfg.setupOpts})
'';
};
}

View file

@ -0,0 +1,6 @@
{
imports = [
./visits.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.visits = {
enable = mkEnableOption "mini.visits";
setupOpts = mkPluginSetupOption "mini.visits" {};
};
}