Nvim is now running Lazy as its plugin Manager.

New keymaps
Nvim.leap instead of flash
This commit is contained in:
Thomas Naderer
2025-07-07 15:31:56 +02:00
parent e715400806
commit 83b031dfe5
10 changed files with 808 additions and 244 deletions

View File

@@ -1,20 +1,17 @@
-- plugins/outline.lua
local M = {}
M.setup = function()
vim.api.nvim_set_keymap('n', '<leader>o', ':Outline<CR>', { noremap = true, silent = true })
require('outline').setup({
show_guides = true, -- Show outline guides
auto_close = false, -- Do not auto-close the outline
auto_open = true, -- Automatically open the outline
preview_lines = 10, -- Number of preview lines to show
keymaps = { -- Custom key mappings for the outline
jump = 'o', -- Jump to the selected item
expand_collapse = 'u', -- Expand or collapse an item
},
})
end
return M
return {
"hedyhli/outline.nvim",
cmd = "Outline",
keys = {
{ "<leader>o", ":Outline<CR>", desc = "Toggle outline" },
},
opts = {
show_guides = true,
auto_close = false,
auto_open = true,
preview_lines = 10,
keymaps = {
jump = "o",
expand_collapse = "u",
},
},
}