feat: added folds and todos

This commit is contained in:
alzalia1 2025-08-17 17:21:32 +02:00
parent 807a15b5b3
commit 67df812bec
5 changed files with 37 additions and 1 deletions

View file

@ -0,0 +1,13 @@
return {
"chrisgrieser/nvim-origami",
event = "VeryLazy",
opts = {
foldKeymaps = { setup = false },
}, -- needed even when using default config
-- recommended: disable vim's auto-folding
init = function()
vim.opt.foldlevel = 99
vim.opt.foldlevelstart = 99
end,
}

View file

@ -0,0 +1,13 @@
return {
"folke/todo-comments.nvim",
dependencies = "nvim-lua/plenary.nvim",
lazy = true, --optional
event = { "BufReadPost", "BufWritePost", "BufNewFile" },
config = function()
require("todo-comments").setup {
-- your configuration comes here
-- or leave it empty to use the default settings
-- refer to the configuration section below
}
end,
}

View file

@ -20,3 +20,11 @@ end)
map("t", "<C-t>", function()
term.toggle()
end)
-- folds
map("n", "<Left>", function()
require("origami").h()
end)
map("n", "<Right>", function()
require("origami").l()
end)