set spell when entering commit, and use ftplugin instead of autocmds

This commit is contained in:
2023-10-22 18:49:49 -04:00
parent fb93992c3f
commit 2740914781
3 changed files with 3 additions and 7 deletions

View File

@ -0,0 +1,2 @@
vim.cmd('set spell!')
vim.cmd('startinsert | 1')

View File

@ -0,0 +1 @@
gitcommit.lua

View File

@ -13,13 +13,6 @@ auto('TextYankPost', { -- highlight yanks
end
})
auto('FileType', { -- start git messages in insert mode
group = 'bufcheck',
pattern = { 'gitcommit', 'gitrebase', },
desc = 'Start git messages in insert mode.',
command = 'startinsert | 1'
})
auto('BufRead', { -- return to last place
pattern = '*',
command = [[call setpos(".", getpos("'\""))]],