From 04fa8c1ab29b7c0eba7c8efc3724c4b808eade83 Mon Sep 17 00:00:00 2001 From: Michael Thomas Date: Thu, 13 Jun 2024 01:21:50 +0200 Subject: [PATCH] feat(nvim/bufferline): use lazyvim style and icons --- pkgs/nvim/config/bufferlines/bufferline.nix | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/pkgs/nvim/config/bufferlines/bufferline.nix b/pkgs/nvim/config/bufferlines/bufferline.nix index 9b717cd..02ebb83 100644 --- a/pkgs/nvim/config/bufferlines/bufferline.nix +++ b/pkgs/nvim/config/bufferlines/bufferline.nix @@ -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";