Skip to content

Commit 60bba96

Browse files
author
Raphael
committed
add spell checker
1 parent 5654d5d commit 60bba96

File tree

3 files changed

+45
-3
lines changed

3 files changed

+45
-3
lines changed

Diff for: .example.json

+42-2
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@
7575
],
7676
"prettier.statusItemText": "",
7777
"prettier.eslintIntegration": true,
78+
"prettier.tslintIntegration": false,
7879
"prettier.stylelintIntegration": true,
7980
"prettier.disableSuccessMessage": true,
8081
//emmet
@@ -85,7 +86,7 @@
8586
},
8687
//imselect
8788
"imselect.enableStatusItem": false,
88-
//multiple curssors
89+
//multiple curssor
8990
"cursors.nextKey": "<C-n>",
9091
"cursors.previousKey": "<C-p>",
9192
"cursors.cancelKey": "<esc>",
@@ -108,5 +109,44 @@
108109
"typescriptreact"
109110
],
110111
"eslint.autoFix": true,
111-
"eslint.autoFixOnSave": true
112+
"eslint.autoFixOnSave": true,
113+
// coc-actions
114+
"coc-actions.hideCursor": false,
115+
// Cspell
116+
"cSpell.fixSpellingWithRenameProvider": true,
117+
"cSpell.showStatus": false,
118+
"cSpell.enabledLanguageIds": [
119+
"asciidoc",
120+
"c",
121+
"cpp",
122+
"csharp",
123+
"css",
124+
"git-commit",
125+
"gitcommit",
126+
"go",
127+
"haskell",
128+
"html",
129+
"java",
130+
"javascript",
131+
"javascriptreact",
132+
"json",
133+
"jsonc",
134+
"latex",
135+
"less",
136+
"markdown",
137+
"php",
138+
"plaintext",
139+
"python",
140+
"pug",
141+
"restructuredtext",
142+
"rust",
143+
"scala",
144+
"scss",
145+
"text",
146+
"typescript",
147+
"typescriptreact",
148+
"yaml",
149+
"yml",
150+
"vim"
151+
]
112152
}

Diff for: core/general.vim

+2-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ set directory=$DATA_PATH/swap//,$DATA_PATH,~/tmp,/var/tmp,/tmp
7979
set undodir=$DATA_PATH/undo//,$DATA_PATH,~/tmp,/var/tmp,/tmp
8080
set backupdir=$DATA_PATH/backup/,$DATA_PATH,~/tmp,/var/tmp,/tmp
8181
set viewdir=$DATA_PATH/view/
82-
set spellfile=$VIM_PATH/spell/en.utf-8.add
82+
" Use the coc-spell-checker to do this
83+
" set spellfile=$VIM_PATH/spell/en.utf-8.add
8384

8485
" History saving
8586
set history=2000

Diff for: modules/module-coc.vim

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ let g:coc_global_extensions =[
2424
\ 'coc-explorer',
2525
\ 'coc-actions',
2626
\ 'coc-db',
27+
\ 'coc-spell-checker',
2728
\]
2829

2930
augroup MyAutoCmd

0 commit comments

Comments
 (0)