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)