Modified Neovim Config

This commit is contained in:
Thomas Naderer
2024-12-22 15:33:11 +01:00
parent a396ab2abc
commit 7d89f6fbbc
5 changed files with 153 additions and 73 deletions

View File

@@ -0,0 +1,20 @@
-- 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