mirror of
https://github.com/kossLAN/nvim-flake.git
synced 2025-11-04 17:59:50 -05:00
spell: turn off spell check cause its annoying
This commit is contained in:
parent
f53425d391
commit
48a93f44a1
2 changed files with 1 additions and 10 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 = { '*' },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue