Skip to content

Commit

Permalink
vim: ignore spell check for go and ts files
Browse files Browse the repository at this point in the history
  • Loading branch information
nicopernas committed Oct 8, 2022
1 parent e3639e0 commit 01cd234
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ set spellfile=~/.vim/spell/en.utf-8.add
hi clear SpellBad
hi SpellBad cterm=reverse

let ignore_spell_check = [ "c", "cpp", "perl", "python", "sh", "rust" ]
let ignore_spell_check = [ "c", "cpp", "perl", "python", "sh", "rust", "go", "typescript" ]
autocmd BufWinEnter * if index(ignore_spell_check, &filetype) < 0
\ | set spell
\ | endif
Expand Down

0 comments on commit 01cd234

Please sign in to comment.