add code outline navigator to nvim
This commit is contained in:
parent
9d3fa8e910
commit
82a3427e1b
10 changed files with 67 additions and 21 deletions
|
|
@ -1,4 +1,4 @@
|
|||
return {
|
||||
return { {
|
||||
-- LSP Configuration & Plugins
|
||||
"neovim/nvim-lspconfig",
|
||||
event = { "BufReadPost", "BufNewFile", "BufWritePre" },
|
||||
|
|
@ -216,4 +216,38 @@ return {
|
|||
vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = hl })
|
||||
end
|
||||
end,
|
||||
},
|
||||
|
||||
{
|
||||
'stevearc/aerial.nvim',
|
||||
-- Optional dependencies
|
||||
dependencies = {
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
"nvim-tree/nvim-web-devicons"
|
||||
},
|
||||
opts = {
|
||||
close_on_select = false,
|
||||
show_guides = true,
|
||||
autojump = true,
|
||||
highlight_on_hover = true,
|
||||
layout = {
|
||||
default_direction = "float",
|
||||
},
|
||||
float = {
|
||||
relative = "editor",
|
||||
},
|
||||
nav = {
|
||||
preview = true,
|
||||
keymaps = {
|
||||
["q"] = "actions.close",
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
keys = {
|
||||
{ "<leader>lt", function() require("aerial").toggle() end, desc = "Open syntax tree" },
|
||||
{ "<leader>lT", function() require("aerial").nav_toggle() end, desc = "Open syntax tree navigation" },
|
||||
{ "<leader>fl", "<CMD>Telescope aerial<CR>", desc = "Find in syntax tree" },
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue