Update 'init.vim'

This commit is contained in:
nnduc 2023-07-04 12:02:19 +00:00
parent 68eefec225
commit c6e8bcede7

View File

@ -3,6 +3,7 @@ set number
set cursorline set cursorline
set expandtab tabstop=4 shiftwidth=4 softtabstop=4 set expandtab tabstop=4 shiftwidth=4 softtabstop=4
set autoindent set autoindent
set spelllang=vi,en
" Fold " Fold
@ -36,10 +37,11 @@ Plug 'ynkdir/vim-diff'
call plug#end() call plug#end()
"Color scheme "Color scheme
"colorscheme iceberg colorscheme iceberg
colorscheme gruvbox "colorscheme gruvbox
"let g:gruvbox_contrast_light = 'hard'
set background=light set background=light
let g:gruvbox_contrast_light = 'hard'
"Open NERDTree "Open NERDTree
@ -58,6 +60,7 @@ function! CheckBackSpace() abort
return !col || getline('.')[col - 1] =~# '\s' return !col || getline('.')[col - 1] =~# '\s'
endfunction endfunction
let g:coc_snippet_next = '<tab>'
let g:coc_snippet_next = '<tab>' let g:coc_snippet_next = '<tab>'
nnoremap <leader>e :CocCommand snippets.editSnippets<CR> nnoremap <leader>e :CocCommand snippets.editSnippets<CR>
@ -146,7 +149,7 @@ silent call IBusOff()
"Language tool "Language tool
let g:ale_linter_aliases = {'tex': ['tex', 'markdown']} let g:ale_linter_aliases = {'tex': ['tex', 'markdown']}
let g:ale_languagetool_executable = "java" let g:ale_languagetool_executable = "java"
let g:ale_languagetool_options = "-jar /data/runtimes/languagetool/languagetool-commandline.jar --languagemodel /data/runtimes/languagemodel/ --word2vecmodel /data/runtimes/languagemodel/ --disable WHITESPACE_RULE,COMMA_PARENTHESIS_WHITESPACE" let g:ale_languagetool_options = "-jar /data/kits/languagetool/languagetool-commandline.jar --languagemodel /data/kits/languagemodel/ --word2vecmodel /data/kits/languagemodel/ --disable WHITESPACE_RULE,COMMA_PARENTHESIS_WHITESPACE"
let g:ale_disable_lsp = 1 let g:ale_disable_lsp = 1
map <F3> :ALEToggle<CR> map <F3> :ALEToggle<CR>