mirror of
https://github.com/nvim-lua/kickstart.nvim.git
synced 2025-08-08 12:05:06 +02:00
buff
This commit is contained in:
parent
9185a777f4
commit
c79737a0f8
4 changed files with 30 additions and 4 deletions
8
lua/custom/plugins/persistence.lua
Normal file
8
lua/custom/plugins/persistence.lua
Normal 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
|
||||
},
|
||||
}
|
8
lua/custom/plugins/zen-mode.lua
Normal file
8
lua/custom/plugins/zen-mode.lua
Normal 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
|
||||
},
|
||||
}
|
|
@ -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' },
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue