commented out auto save
This commit is contained in:
parent
ad4804d39b
commit
d25b3799db
|
@ -1,27 +1,27 @@
|
||||||
return {
|
return {
|
||||||
'okuuva/auto-save.nvim',
|
-- 'okuuva/auto-save.nvim',
|
||||||
version = '^1.0.0', -- see https://devhints.io/semver, alternatively use '*' to use the latest tagged release
|
-- version = '^1.0.0', -- see https://devhints.io/semver, alternatively use '*' to use the latest tagged release
|
||||||
cmd = 'ASToggle', -- optional for lazy loading on command
|
-- cmd = 'ASToggle', -- optional for lazy loading on command
|
||||||
event = { 'InsertLeave', 'TextChanged' }, -- optional for lazy loading on trigger events
|
-- event = { 'InsertLeave', 'TextChanged' }, -- optional for lazy loading on trigger events
|
||||||
opts = {
|
-- opts = {
|
||||||
-- your config goes here
|
-- -- your config goes here
|
||||||
-- or just leave it empty :)
|
-- -- or just leave it empty :)
|
||||||
enabled = true, -- start auto-save when the plugin is loaded (i.e. when your package manager loads it)
|
-- enabled = true, -- start auto-save when the plugin is loaded (i.e. when your package manager loads it)
|
||||||
trigger_events = { -- See :h events
|
-- trigger_events = { -- See :h events
|
||||||
immediate_save = { 'BufLeave', 'FocusLost', 'QuitPre', 'VimSuspend' }, -- vim events that trigger an immediate save
|
-- immediate_save = { 'BufLeave', 'FocusLost', 'QuitPre', 'VimSuspend' }, -- vim events that trigger an immediate save
|
||||||
defer_save = { 'InsertLeave', 'TextChanged' }, -- vim events that trigger a deferred save (saves after `debounce_delay`)
|
-- defer_save = { 'InsertLeave', 'TextChanged' }, -- vim events that trigger a deferred save (saves after `debounce_delay`)
|
||||||
cancel_deferred_save = { 'InsertEnter' }, -- vim events that cancel a pending deferred save
|
-- cancel_deferred_save = { 'InsertEnter' }, -- vim events that cancel a pending deferred save
|
||||||
},
|
-- },
|
||||||
-- function that takes the buffer handle and determines whether to save the current buffer or not
|
-- -- function that takes the buffer handle and determines whether to save the current buffer or not
|
||||||
-- return true: if buffer is ok to be saved
|
-- -- return true: if buffer is ok to be saved
|
||||||
-- return false: if it's not ok to be saved
|
-- -- return false: if it's not ok to be saved
|
||||||
-- if set to `nil` then no specific condition is applied
|
-- -- if set to `nil` then no specific condition is applied
|
||||||
condition = nil,
|
-- condition = nil,
|
||||||
write_all_buffers = false, -- write all buffers when the current one meets `condition`
|
-- write_all_buffers = false, -- write all buffers when the current one meets `condition`
|
||||||
noautocmd = false, -- do not execute autocmds when saving
|
-- noautocmd = false, -- do not execute autocmds when saving
|
||||||
lockmarks = false, -- lock marks when saving, see `:h lockmarks` for more details
|
-- lockmarks = false, -- lock marks when saving, see `:h lockmarks` for more details
|
||||||
debounce_delay = 1000, -- delay after which a pending save is executed
|
-- debounce_delay = 1000, -- delay after which a pending save is executed
|
||||||
-- log debug messages to 'auto-save.log' file in neovim cache directory, set to `true` to enable
|
-- -- log debug messages to 'auto-save.log' file in neovim cache directory, set to `true` to enable
|
||||||
debug = false,
|
-- debug = false,
|
||||||
},
|
-- },
|
||||||
}
|
}
|
||||||
|
|
|
@ -1 +1,27 @@
|
||||||
return { 'mg979/vim-visual-multi', branch = 'master' }
|
return { 'mg979/vim-visual-multi', branch = 'master' }
|
||||||
|
|
||||||
|
--
|
||||||
|
-- It's called vim-visual-multi in analogy with visual-block, but the plugin works mostly from normal mode.
|
||||||
|
--
|
||||||
|
-- Basic usage:
|
||||||
|
--
|
||||||
|
-- select words with Ctrl-N (like Ctrl-d in Sublime Text/VS Code)
|
||||||
|
-- create cursors vertically with Ctrl-Down/Ctrl-Up
|
||||||
|
-- select one character at a time with Shift-Arrows
|
||||||
|
-- press n/N to get next/previous occurrence
|
||||||
|
-- press [/] to select next/previous cursor
|
||||||
|
-- press q to skip current and get next occurrence
|
||||||
|
-- press Q to remove current cursor/selection
|
||||||
|
-- start insert mode with i,a,I,A
|
||||||
|
-- Two main modes:
|
||||||
|
--
|
||||||
|
-- in cursor mode commands work as they would in normal mode
|
||||||
|
-- in extend mode commands work as they would in visual mode
|
||||||
|
-- press Tab to switch between «cursor» and «extend» mode
|
||||||
|
-- Most vim commands work as expected (motions, r to replace characters, ~ to change case, etc). Additionally you can:
|
||||||
|
--
|
||||||
|
-- run macros/ex/normal commands at cursors
|
||||||
|
-- align cursors
|
||||||
|
-- transpose selections
|
||||||
|
-- add patterns with regex, or from visual mode
|
||||||
|
-- And more... of course, you can enter insert mode and autocomplete will work.
|
||||||
|
|
Loading…
Reference in New Issue