feat: apply new module format to tabline plugins

This commit is contained in:
NotAShelf 2023-02-27 22:28:18 +03:00
parent d5082e5ef2
commit 211344d65c
No known key found for this signature in database
GPG key ID: 5B5C8895F28445F1
4 changed files with 22 additions and 11 deletions

View file

@ -1,10 +1,5 @@
{
pkgs,
lib,
config,
...
}: {
_: {
imports = [
./nvim-bufferline.nix
./nvim-bufferline
];
}

View file

@ -8,10 +8,6 @@ with lib;
with builtins; let
cfg = config.vim.tabline.nvimBufferline;
in {
options.vim.tabline.nvimBufferline = {
enable = mkEnableOption "nvim-bufferline-lua";
};
config = mkIf cfg.enable (
let
mouse = {

View file

@ -0,0 +1,6 @@
_: {
imports = [
./nvim-bufferline.nix
./config.nix
];
}

View file

@ -0,0 +1,14 @@
{
pkgs,
config,
lib,
...
}:
with lib;
with builtins; let
cfg = config.vim.tabline.nvimBufferline;
in {
options.vim.tabline.nvimBufferline = {
enable = mkEnableOption "nvim-bufferline-lua";
};
}