We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
InsertLeave
TextChangedI
1 parent f2d9d75 commit 555c487Copy full SHA for 555c487
lua/gp/init.lua
@@ -1356,8 +1356,8 @@ M.prep_md = function(buf)
1356
vim.api.nvim_command("setlocal noswapfile")
1357
-- better text wrapping
1358
vim.api.nvim_command("setlocal wrap linebreak")
1359
- -- auto save on TextChanged, TextChangedI
1360
- vim.api.nvim_command("autocmd TextChanged,TextChangedI <buffer=" .. buf .. "> silent! write")
+ -- auto save on TextChanged, InsertLeave
+ vim.api.nvim_command("autocmd TextChanged,InsertLeave <buffer=" .. buf .. "> silent! write")
1361
1362
-- register shortcuts local to this buffer
1363
buf = buf or vim.api.nvim_get_current_buf()
0 commit comments