nixos/home/neovim/config/lua/plugins/nvim_navbuddy.lua

34 lines
923 B
Lua

return {
"SmiteshP/nvim-navbuddy",
dependencies = {
"SmiteshP/nvim-navic",
"MunifTanjim/nui.nvim",
"neovim/nvim-lspconfig",
"numToStr/Comment.nvim",
"nvim-telescope/telescope.nvim",
},
cmd = { "Navbuddy" },
init = function() vim.keymap.set("n", "<leader>na", "<cmd>Navbuddy<cr>") end,
config = true,
opts = {
icons = require "ui.navic_icons",
window = {
border = "rounded",
size = "80%",
sections = {
left = { border = "rounded" },
mid = { border = "rounded" },
right = { border = "rounded", preview = "leaf" },
},
},
node_markers = {
enabled = true,
icons = {
leaf = "󰅀 ",
leaf_selected = "󰄼 ",
branch = "󰅂 ",
},
},
},
}