nvim: enable spell checking for commits
This commit is contained in:
parent
73e1c7742d
commit
1198bc7871
|
@ -11,8 +11,15 @@ neogit.setup {
|
|||
}
|
||||
map('n', '<Leader>gg', neogit.open, 'Open Neogit')
|
||||
|
||||
-- start git commits in insert mode
|
||||
local gitgroup = vim.api.nvim_create_augroup('config_git', { clear = true })
|
||||
-- enable spell checking
|
||||
vim.api.nvim_create_autocmd({ 'FileType' }, {
|
||||
group = gitgroup,
|
||||
pattern = { 'gitcommit' },
|
||||
command = [[setlocal spell]]
|
||||
})
|
||||
|
||||
-- start git commits in insert mode
|
||||
vim.api.nvim_create_autocmd({ 'FileType' }, {
|
||||
group = gitgroup,
|
||||
pattern = { 'gitcommit', 'gitrebase' },
|
||||
|
|
Loading…
Reference in New Issue
Block a user