mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-01-19 16:32:24 +00:00
mini/visits: init
This commit is contained in:
parent
0994337d02
commit
e8e5594fb9
7 changed files with 62 additions and 0 deletions
|
@ -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):
|
||||||
|
|
||||||
|
|
17
flake.lock
17
flake.lock
|
@ -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",
|
||||||
|
|
|
@ -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;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,5 +39,6 @@
|
||||||
./tabline
|
./tabline
|
||||||
./test
|
./test
|
||||||
./trailspace
|
./trailspace
|
||||||
|
./visits
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
19
modules/plugins/mini/visits/config.nix
Normal file
19
modules/plugins/mini/visits/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.visits;
|
||||||
|
in {
|
||||||
|
vim = mkIf cfg.enable {
|
||||||
|
startPlugins = ["mini-visits"];
|
||||||
|
|
||||||
|
pluginRC.mini-visits = entryAnywhere ''
|
||||||
|
require("mini.visits").setup(${toLuaObject cfg.setupOpts})
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
6
modules/plugins/mini/visits/default.nix
Normal file
6
modules/plugins/mini/visits/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./visits.nix
|
||||||
|
./config.nix
|
||||||
|
];
|
||||||
|
}
|
13
modules/plugins/mini/visits/visits.nix
Normal file
13
modules/plugins/mini/visits/visits.nix
Normal 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" {};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue