"set term=xterm-256color
"In order to display chinese in GBK
-let &termencoding=&encoding
+"let &termencoding=&encoding
set fileencodings=utf-8,gbk
set fileformat=unix
-set foldmethod=manual
+set foldmethod=indent
set encoding=utf-8 "required for ycm
set tabstop=4
"Plug 'ycm-core/YouCompleteMe'
"Plug 'rhysd/vim-clang-format'
- Plug 'neoclide/coc.nvim'
+ Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'nvim-treesitter/nvim-treesitter'
"Plug 'mfussenegger/nvim-dap'
\'coc-marketplace',
\'coc-highlight',
\'coc-clangd',
- \'coc-jedi',
- \'coc-vimlsp',
+ \'coc-pyright',
+ \'coc-lua',
\'coc-sh',
+ \'coc-cmake',
+ \'coc-xmake',
\'coc-json',
- \'coc-yaml'
+ \'coc-yaml',
+ \'coc-vimlsp',
\]
endif
nnoremap <silent> <Leader>v+ :vertical resize +5<CR>
nnoremap <silent> <Leader>v- :vertical resize -5<CR>
+" shortcut for folding
+nnoremap <silent> <Leader>fi :set foldmethod=indent<CR>
+nnoremap <silent> <Leader>fd :set foldmethod=manual<CR>ggVGzD
"HighLight trailing whitespace"
highlight ExtraWhitespace ctermbg=red guibg=red