feat nvim: add pathbar

This commit is contained in:
Yuan Chiu 2025-06-02 20:46:20 +08:00
parent e0ba4d036b
commit 88dbefae00
Signed by: yuan
GPG Key ID: 50FBE4156404B98D

View File

@ -0,0 +1,17 @@
return {
{
'Bekaboo/dropbar.nvim',
-- optional, but required for fuzzy finder support
dependencies = {
'nvim-telescope/telescope-fzf-native.nvim',
build = 'make'
},
config = function()
local dropbar_api = require('dropbar.api')
vim.keymap.set('n', '<Leader>;', 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
}
}