feat(nvim/bufferline): use lazyvim style and icons

This commit is contained in:
Michael Thomas 2024-06-13 01:21:50 +02:00
parent b25a89b471
commit 04fa8c1ab2

View File

@ -1,8 +1,22 @@
{
helpers,
icons,
...
}: {
plugins = {
bufferline = {
enable = true;
separatorStyle = "thick"; # “slant”, “padded_slant”, “slope”, “padded_slope”, “thick”, “thin”
separatorStyle = "thin"; # “slant”, “padded_slant”, “slope”, “padded_slope”, “thick”, “thin”
alwaysShowBufferline = false;
diagnostics = "nvim_lsp";
diagnosticsIndicator = ''
function(_, _, diag)
local icons = ${helpers.toLuaObject icons.diagnostics}
local ret = (diag.error and icons.Error .. diag.error .. " " or "")
.. (diag.warning and icons.Warn .. diag.warning or "")
return vim.trim(ret)
end
'';
offsets = [
{
filetype = "neo-tree";