From 1354bf104fc5dbd14763ca551f5898eafb791c5d Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Sat, 18 Jan 2025 14:12:55 -0800 Subject: [PATCH] feat: replace barbecue with dropbar --- flake.nix | 2 +- lua/plugins/lz-spec.lua | 16 +++++++++------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/flake.nix b/flake.nix index cef97fb..9612738 100644 --- a/flake.nix +++ b/flake.nix @@ -158,7 +158,7 @@ # QoL - augments existing features to be a little nicer or adds some minor enhancements fidget-nvim # the best notifications. unintrusive. also does LSP progress. gitsigns-nvim # shows git changed areas in the sidebar - barbecue-nvim # ide-like breadcrumbs + dropbar-nvim # ide-like breadcrumbs mini-ai # adds additional 'a' and 'i' patterns (nothing to do with AI) mini-hipatterns # highlight surrounding patterns mini-surround # essential. adds 'sa', 'sr', 'sd', etc for surrounding diff --git a/lua/plugins/lz-spec.lua b/lua/plugins/lz-spec.lua index 8639828..4ea7ea4 100644 --- a/lua/plugins/lz-spec.lua +++ b/lua/plugins/lz-spec.lua @@ -143,13 +143,6 @@ return { require("mini.hipatterns").setup() end, }, - { - "barbecue.nvim", - event = "BufEnter", - after = function() - require("barbecue").setup() - end, - }, { "undotree", cmd = "UndotreeToggle", @@ -283,4 +276,13 @@ return { }, }, }, + { + "dropbar.nvim", + after = function() + local dropbar_api = require("dropbar.api") + vim.keymap.set("n", ";", dropbar_api.pick, { desc = "Pick symbols in winbar" }) + vim.keymap.set("n", "[;", dropbar_api.goto_context_start, { desc = "Go to start of current context" }) + vim.keymap.set("n", "];", dropbar_api.select_next_context, { desc = "Select next context" }) + end, + }, }