mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-01 19:11:15 +00:00
tabline/bufferline: add highlights
This commit is contained in:
parent
c66854fc7f
commit
42447cd3bf
2 changed files with 362 additions and 350 deletions
|
@ -40,7 +40,7 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
luaConfigRC.nvimBufferline = entryAnywhere ''
|
luaConfigRC.nvimBufferline = entryAnywhere ''
|
||||||
require("bufferline").setup({options = ${toLuaObject cfg.setupOpts}})
|
require("bufferline").setup(${toLuaObject cfg.setupOpts})
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -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 {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue