Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 65 additions & 0 deletions config/nvim-lazyvim/lua/plugins/navbuddy.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
-- NavBuddy https://github.com/SmiteshP/nvim-navbuddy

return {
"SmiteshP/nvim-navbuddy",
dependencies = {
"SmiteshP/nvim-navic",
"MunifTanjim/nui.nvim",
"neovim/nvim-lspconfig", -- Ensure LSP is loaded
},
event = "LspAttach", -- Load when LSP attaches to a buffer
keys = {
{ "<leader>nv", function()
local navbuddy = require("nvim-navbuddy")
navbuddy.open()
end, desc = "Nav Buddy" },
},
config = function()
local navbuddy = require("nvim-navbuddy")
local actions = require("nvim-navbuddy.actions")

navbuddy.setup({
window = {
border = "single", -- "rounded", "double", "solid", "none"
size = "60%", -- Or table format example: { height = "40%", width = "100%"}
position = "50%", -- Or table format example: { row = "100%", col = "0%"}
scrolloff = nil, -- scrolloff value within navbuddy window
sections = {
left = {
size = "20%",
border = nil, -- You can set border style for each section individually as well
},
mid = {
size = "40%",
border = nil,
},
right = {
-- No size option for right most section. It fills to
-- remaining area.
border = nil,
preview = "leaf", -- Right section can show previews too.
-- Options: "leaf", "always" or "never"
},
},
},
node_markers = {
enabled = true,
icons = {
leaf = " ",
leaf_selected = " → ",
branch = " ",
},
},
lsp = {
auto_attach = true, -- If set to true, you don't need to manually use attach function
preference = nil, -- list of lsp server names in order of preference
},
source_buffer = {
follow_node = true, -- Keep the current node in focus on the source buffer
highlight = true, -- Highlight the currently focused node
reorient = "smart", -- "smart", "top", "mid" or "none"
scrolloff = nil, -- scrolloff value when navbuddy is open
},
})
end,
}
65 changes: 65 additions & 0 deletions config/nvim-work/lua/plugins/lazy/navbuddy.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
-- NavBuddy https://github.com/SmiteshP/nvim-navbuddy

return {
"SmiteshP/nvim-navbuddy",
dependencies = {
"SmiteshP/nvim-navic",
"MunifTanjim/nui.nvim",
"neovim/nvim-lspconfig", -- Ensure LSP is loaded
},
event = "LspAttach", -- Load when LSP attaches to a buffer
keys = {
{ "<leader>nv", function()
local navbuddy = require("nvim-navbuddy")
navbuddy.open()
end, desc = "Nav Buddy" },
},
config = function()
local navbuddy = require("nvim-navbuddy")
local actions = require("nvim-navbuddy.actions")

navbuddy.setup({
window = {
border = "single", -- "rounded", "double", "solid", "none"
size = "60%", -- Or table format example: { height = "40%", width = "100%"}
position = "50%", -- Or table format example: { row = "100%", col = "0%"}
scrolloff = nil, -- scrolloff value within navbuddy window
sections = {
left = {
size = "20%",
border = nil, -- You can set border style for each section individually as well
},
mid = {
size = "40%",
border = nil,
},
right = {
-- No size option for right most section. It fills to
-- remaining area.
border = nil,
preview = "leaf", -- Right section can show previews too.
-- Options: "leaf", "always" or "never"
},
},
},
node_markers = {
enabled = true,
icons = {
leaf = " ",
leaf_selected = " → ",
branch = " ",
},
},
lsp = {
auto_attach = true, -- If set to true, you don't need to manually use attach function
preference = nil, -- list of lsp server names in order of preference
},
source_buffer = {
follow_node = true, -- Keep the current node in focus on the source buffer
highlight = true, -- Highlight the currently focused node
reorient = "smart", -- "smart", "top", "mid" or "none"
scrolloff = nil, -- scrolloff value when navbuddy is open
},
})
end,
}
65 changes: 65 additions & 0 deletions config/nvim/lua/plugins/lazy/navbuddy.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
-- NavBuddy https://github.com/SmiteshP/nvim-navbuddy

return {
"SmiteshP/nvim-navbuddy",
dependencies = {
"SmiteshP/nvim-navic",
"MunifTanjim/nui.nvim",
"neovim/nvim-lspconfig", -- Ensure LSP is loaded
},
event = "LspAttach", -- Load when LSP attaches to a buffer
keys = {
{ "<leader>nv", function()
local navbuddy = require("nvim-navbuddy")
navbuddy.open()
end, desc = "Nav Buddy" },
},
config = function()
local navbuddy = require("nvim-navbuddy")
local actions = require("nvim-navbuddy.actions")

navbuddy.setup({
window = {
border = "single", -- "rounded", "double", "solid", "none"
size = "60%", -- Or table format example: { height = "40%", width = "100%"}
position = "50%", -- Or table format example: { row = "100%", col = "0%"}
scrolloff = nil, -- scrolloff value within navbuddy window
sections = {
left = {
size = "20%",
border = nil, -- You can set border style for each section individually as well
},
mid = {
size = "40%",
border = nil,
},
right = {
-- No size option for right most section. It fills to
-- remaining area.
border = nil,
preview = "leaf", -- Right section can show previews too.
-- Options: "leaf", "always" or "never"
},
},
},
node_markers = {
enabled = true,
icons = {
leaf = " ",
leaf_selected = " → ",
branch = " ",
},
},
lsp = {
auto_attach = true, -- If set to true, you don't need to manually use attach function
preference = nil, -- list of lsp server names in order of preference
},
source_buffer = {
follow_node = true, -- Keep the current node in focus on the source buffer
highlight = true, -- Highlight the currently focused node
reorient = "smart", -- "smart", "top", "mid" or "none"
scrolloff = nil, -- scrolloff value when navbuddy is open
},
})
end,
}