mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-12-21 19:09:49 +01:00
feat: apply new module format to tabline plugins
This commit is contained in:
parent
d5082e5ef2
commit
211344d65c
4 changed files with 22 additions and 11 deletions
|
@ -1,10 +1,5 @@
|
||||||
{
|
_: {
|
||||||
pkgs,
|
|
||||||
lib,
|
|
||||||
config,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
imports = [
|
imports = [
|
||||||
./nvim-bufferline.nix
|
./nvim-bufferline
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,10 +8,6 @@ with lib;
|
||||||
with builtins; let
|
with builtins; let
|
||||||
cfg = config.vim.tabline.nvimBufferline;
|
cfg = config.vim.tabline.nvimBufferline;
|
||||||
in {
|
in {
|
||||||
options.vim.tabline.nvimBufferline = {
|
|
||||||
enable = mkEnableOption "nvim-bufferline-lua";
|
|
||||||
};
|
|
||||||
|
|
||||||
config = mkIf cfg.enable (
|
config = mkIf cfg.enable (
|
||||||
let
|
let
|
||||||
mouse = {
|
mouse = {
|
6
modules/tabline/nvim-bufferline/default.nix
Normal file
6
modules/tabline/nvim-bufferline/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
_: {
|
||||||
|
imports = [
|
||||||
|
./nvim-bufferline.nix
|
||||||
|
./config.nix
|
||||||
|
];
|
||||||
|
}
|
14
modules/tabline/nvim-bufferline/nvim-bufferline.nix
Normal file
14
modules/tabline/nvim-bufferline/nvim-bufferline.nix
Normal 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";
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue