1
0

add navbuddy

This commit is contained in:
Rokas Puzonas 2023-07-12 21:10:00 +03:00
parent 224ead3156
commit e4155b9fa4
2 changed files with 34 additions and 0 deletions

33
lua/config/navbuddy.lua Normal file
View File

@ -0,0 +1,33 @@
return {
"SmiteshP/nvim-navbuddy",
requires = {
"neovim/nvim-lspconfig",
"SmiteshP/nvim-navic",
"MunifTanjim/nui.nvim",
"nvim-telescope/telescope.nvim"
},
config = function()
local navbuddy = require("nvim-navbuddy")
require("legendary").keymaps{
{"<leader>o", ":Navbuddy<CR>", description="Navbuddy"}
}
navbuddy.setup {
window = {
border = "rounded",
size = "60%",
position = "50%",
sections = {
left = { size = "20%" },
mid = { size = "40%" },
right = { preview = "leaf" }
},
},
node_markers = { enabled = true },
use_default_mappings = true,
lsp = { auto_attach = true }
}
end
}

View File

@ -33,6 +33,7 @@ return function(use)
use_config "diffview"
use_config "git-conflict"
use_config "doxygen-tk"
use_config "navbuddy"
-- use_config "ufo"
use {