mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2024-11-10 02:39:40 +00:00
Use coc for language IntelliSense completions
This commit is contained in:
parent
d35a9d3e83
commit
f601d345f9
1
home/.config/nvim/rc/coc.vim
Normal file
1
home/.config/nvim/rc/coc.vim
Normal file
|
@ -0,0 +1 @@
|
|||
let g:coc_global_extensions = ['coc-python', 'coc-json', 'coc-git', 'coc-html', 'coc-css', 'coc-clangd', 'coc-cmake', 'coc-java', 'coc-sh', 'coc-toml', 'coc-yaml', 'coc-omnisharp']
|
1
home/.config/nvim/rc/plugins.d/coc.vim
Normal file
1
home/.config/nvim/rc/plugins.d/coc.vim
Normal file
|
@ -0,0 +1 @@
|
|||
let g:coc_global_extensions = ['coc-python', 'coc-json', 'coc-git', 'coc-html', 'coc-css']
|
|
@ -1,12 +0,0 @@
|
|||
" Define python-specific neomake config
|
||||
" Neomake is python syntax checker, in this case, we use flake8
|
||||
" Requires: pip install flake8
|
||||
let g:neomake_python_enabled_makers = ['flake8']
|
||||
let g:neomake_python_flake8_maker = {'args': ['--ignore=E501', '--format=default']}
|
||||
call neomake#configure#automake('nrwi', 500)
|
||||
|
||||
" Enable deoplete on startup
|
||||
" Deoplete provides autosuggestions from python standard library
|
||||
" Requires: pip install pynvim
|
||||
let g:deoplete#enable_at_startup = 1
|
||||
|
|
@ -14,16 +14,13 @@ endif
|
|||
call plug#begin(config_dir."/plugged")
|
||||
|
||||
" Code completion
|
||||
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
|
||||
Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
||||
" Themes
|
||||
Plug 'tomasiser/vim-code-dark'
|
||||
Plug 'vim-airline/vim-airline'
|
||||
Plug 'vim-airline/vim-airline-themes'
|
||||
Plug 'ryanoasis/vim-devicons'
|
||||
Plug 'airblade/vim-gitgutter'
|
||||
" Python
|
||||
Plug 'neomake/neomake'
|
||||
Plug 'zchee/deoplete-jedi'
|
||||
" Misc
|
||||
Plug 'dhruvasagar/vim-table-mode'
|
||||
Plug 'vimwiki/vimwiki'
|
||||
|
@ -40,4 +37,5 @@ let plugins_rc_dir = rc_dir."/plugins.d"
|
|||
execute "source ".plugins_rc_dir."/airline.vim"
|
||||
execute "source ".plugins_rc_dir."/nerdtree.vim"
|
||||
execute "source ".plugins_rc_dir."/vimwiki.vim"
|
||||
execute "source ".plugins_rc_dir."/python.vim"
|
||||
execute "source ".plugins_rc_dir."/coc.vim"
|
||||
"execute "source ".plugins_rc_dir."/python.vim"
|
||||
|
|
Loading…
Reference in a new issue