From 1b16c6b19fe4d314efeca42d275945713dcb0076 Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Fri, 8 Nov 2024 12:59:08 +0300 Subject: [PATCH] tabline/nvim-bufferline: remove assertion; enable nvim-web-devicons by default --- modules/plugins/tabline/nvim-bufferline/config.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/plugins/tabline/nvim-bufferline/config.nix b/modules/plugins/tabline/nvim-bufferline/config.nix index fe54efbe..4989e991 100644 --- a/modules/plugins/tabline/nvim-bufferline/config.nix +++ b/modules/plugins/tabline/nvim-bufferline/config.nix @@ -15,10 +15,14 @@ in { config = mkIf cfg.enable { vim = { startPlugins = [ - (assert config.vim.visuals.nvimWebDevicons.enable; "nvim-bufferline-lua") + "nvim-bufferline-lua" "bufdelete-nvim" ]; + # Soft-dependency for bufferline. + # Recommended by upstream, so enabled here. + visuals.nvim-web-devicons.enable = true; + maps.normal = mkMerge [ (mkLuaBinding cfg.mappings.closeCurrent "require(\"bufdelete\").bufdelete" mappings.closeCurrent.description) (mkBinding cfg.mappings.cycleNext ":BufferLineCycleNext" mappings.cycleNext.description)