diff --git a/lua/config/navbuddy.lua b/lua/config/navbuddy.lua new file mode 100644 index 0000000..b3970dd --- /dev/null +++ b/lua/config/navbuddy.lua @@ -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{ + {"o", ":Navbuddy", 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 +} diff --git a/lua/plugins.lua b/lua/plugins.lua index 72c1935..8df7532 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -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 {