This commit is contained in:
pat-alt 2025-04-15 19:52:14 +02:00
parent 9185a777f4
commit c79737a0f8
4 changed files with 30 additions and 4 deletions

View file

@ -0,0 +1,8 @@
-- TODO: understand how this actually works
return {
'folke/persistence.nvim',
event = 'BufReadPre', -- this will only start session saving when an actual file was opened
opts = {
-- add any custom options here
},
}

View file

@ -0,0 +1,8 @@
return {
'folke/zen-mode.nvim',
opts = {
-- your configuration comes here
-- or leave it empty to use the default settings
-- refer to the configuration section below
},
}

View file

@ -1,3 +1,5 @@
-- TODO: Add insert commands to insert comments
-- NOTE: Plugins can also be configured to run Lua code when they are loaded.
--
-- This is often very useful to both group configuration, as well as handle
@ -65,9 +67,13 @@ return {
{ '<leader>w', group = '[W]orkspace' },
{ '<leader>t', group = '[T]oggle' },
{ '<leader>h', group = 'Git [H]unk', mode = { 'n', 'v' } },
{ '<leader>z', ':ZenMode<cr>', desc = '[Z]en mode' },
-- Toggle
{ '<leader>st', ':TodoTelescope<cr>', desc = '[T]odo' },
-- Search and Replace
{ '<leader>r', group = '[R]eplace' },
{ '<leader>rf', [[:%s/\<<C-r><C-w>\>//g<Left><Left>]], desc = 'Search and replace in [f]ile' },
-- TODO: add find+and replace for project dir
-- Quarto
{ '<leader>q', group = '[q]uarto' },
{ '<leader>qh', ':QuartoHelp ', desc = '[h]elp' },
@ -81,6 +87,8 @@ return {
{ '<leader>m', group = '[M]ason' },
{ '<leader>mo', ':Mason<cr>', desc = '[O]pen' },
{ '<leader>mi', ':MasonInstall ', desc = '[I]nstall' },
-- Insert comments
{ '<leader>i', group = '[I]nsert' },
},
},
},