diff --git a/nvim/init.lua b/nvim/init.lua index 6a47c48..a38666f 100644 --- a/nvim/init.lua +++ b/nvim/init.lua @@ -29,7 +29,7 @@ opt.showmatch = true -- Highlight matching parentheses, etc opt.incsearch = true opt.hlsearch = true -opt.spell = true +opt.spell = false opt.spelllang = 'en' opt.expandtab = true diff --git a/nvim/plugin/autocommands.lua b/nvim/plugin/autocommands.lua index 0e2f67d..cd8ceb6 100644 --- a/nvim/plugin/autocommands.lua +++ b/nvim/plugin/autocommands.lua @@ -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 = { '*' },