tabline/bufferline: add highlights

This commit is contained in:
diniamo 2024-06-16 19:56:31 +02:00
parent c66854fc7f
commit 42447cd3bf
2 changed files with 362 additions and 350 deletions

View file

@ -40,7 +40,7 @@ in {
}; };
luaConfigRC.nvimBufferline = entryAnywhere '' luaConfigRC.nvimBufferline = entryAnywhere ''
require("bufferline").setup({options = ${toLuaObject cfg.setupOpts}}) require("bufferline").setup(${toLuaObject cfg.setupOpts})
''; '';
}; };
}; };

View file

@ -21,6 +21,17 @@ in {
}; };
setupOpts = mkPluginSetupOption "Bufferline-nvim" { setupOpts = mkPluginSetupOption "Bufferline-nvim" {
highlights = mkOption {
type = either attrs luaInline;
default = null;
description = ''
Overrides the highlight groups of bufferline.
See `:help bufferline-highlights`.
'';
};
options = {
mode = mkOption { mode = mkOption {
type = enum ["tabs" "buffers"]; type = enum ["tabs" "buffers"];
default = "buffers"; default = "buffers";
@ -388,4 +399,5 @@ in {
}; };
}; };
}; };
};
} }