spell: turn off spell check cause its annoying

This commit is contained in:
kossLAN 2024-09-28 19:39:17 -04:00
parent f53425d391
commit 48a93f44a1
Signed by: kossLAN
SSH key fingerprint: SHA256:bdV0x+wdQHGJ6LgmstH3KV8OpWY+OOFmJcPcB0wQPV8
2 changed files with 1 additions and 10 deletions

View file

@ -15,15 +15,6 @@ api.nvim_create_autocmd('BufWritePre', {
end,
})
-- Disable spell checking in terminal buffers
local nospell_group = api.nvim_create_augroup('nospell', { clear = true })
api.nvim_create_autocmd('TermOpen', {
group = nospell_group,
callback = function()
vim.wo[0].spell = false
end,
})
-- Restore cursor position
vim.api.nvim_create_autocmd({ 'BufReadPost' }, {
pattern = { '*' },