mini/tabline: init

This commit is contained in:
LilleAila 2025-01-17 21:20:20 +01:00
parent 8809ecd689
commit 400c7b84e3
No known key found for this signature in database
GPG key ID: D1ACCDCF2B9B9799
7 changed files with 62 additions and 0 deletions

View file

@ -90,6 +90,7 @@
- `mini.starter`
- `mini.statusline`
- `mini.surround`
- `mini.tabline`
[kaktu5](https://github.com/kaktu5):

View file

@ -1512,6 +1512,22 @@
"type": "github"
}
},
"plugin-mini-tabline": {
"flake": false,
"locked": {
"lastModified": 1729176541,
"narHash": "sha256-nucUqSN8w2xBnDp1dFBgRVVvfVoqZMdx7Zj78wdFAP0=",
"owner": "echasnovski",
"repo": "mini.tabline",
"rev": "06ef4ecaeca2e362c7d31113435d86d144b3cbbe",
"type": "github"
},
"original": {
"owner": "echasnovski",
"repo": "mini.tabline",
"type": "github"
}
},
"plugin-minimap-vim": {
"flake": false,
"locked": {
@ -2744,6 +2760,7 @@
"plugin-mini-starter": "plugin-mini-starter",
"plugin-mini-statusline": "plugin-mini-statusline",
"plugin-mini-surround": "plugin-mini-surround",
"plugin-mini-tabline": "plugin-mini-tabline",
"plugin-minimap-vim": "plugin-minimap-vim",
"plugin-modes-nvim": "plugin-modes-nvim",
"plugin-neo-tree-nvim": "plugin-neo-tree-nvim",

View file

@ -925,5 +925,10 @@
url = "github:echasnovski/mini.surround";
flake = false;
};
plugin-mini-tabline = {
url = "github:echasnovski/mini.tabline";
flake = false;
};
};
}

View file

@ -36,5 +36,6 @@
./starter
./statusline
./surround
./tabline
];
}

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

View file

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