diff --git a/vim/.vimrc b/vim/.vimrc index b764e27..fae903b 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -91,15 +91,30 @@ Plug 'tpope/vim-projectionist' Plug 'simnalamburt/vim-mundo' nnoremap u :MundoToggle -let g:ale_completion_enabled = 1 Plug 'w0rp/ale' - nmap (ale_previous_wrap) + nmap [a (ale_previous_wrap) nmap (ale_next_wrap) - nmap gq (ale_fix) let g:ale_linters = {} - let g:ale_linters.javascript = ['eslint', 'tsserver'] + let g:ale_linters.javascript = ['eslint'] let g:ale_fixers = {} let g:ale_fixers.javascript = ['eslint'] + let g:ale_fix_on_save = 1 + +Plug 'neoclide/coc.nvim', {'tag': '*', 'do': './install.sh'} + " Remap keys for gotos + nmap gd (coc-definition) + nmap gy (coc-type-definition) + nmap gi (coc-implementation) + nmap gr (coc-references) + " Use `[c` and `]c` to navigate diagnostics + nmap [d (coc-diagnostic-prev) + nmap ]d (coc-diagnostic-next) + " Remap for rename current word + nmap rn (coc-rename) + " Remap for do codeAction of current line + nmap ac (coc-codeaction) + " Fix autofix problem of current line + nmap qf (coc-fix-current) Plug 'itchyny/lightline.vim' if filereadable(expand("~/.vim/lightline.vim")) @@ -140,13 +155,6 @@ Plug 'janko-m/vim-test' " vim 8 plugins if v:version >= 800 - Plug 'Shougo/deoplete.nvim' | Plug 'roxma/nvim-yarp' | Plug 'roxma/vim-hug-neovim-rpc' - let g:deoplete#enable_at_startup=1 - let g:deoplete#file#enable_buffer_path=1 - - Plug 'carlitux/deoplete-ternjs', { 'do': 'npm install -g tern' } - let g:deoplete#sources#ternjs#filetypes = [ 'jsx', 'javascript.jsx' ] - Plug 'ludovicchabant/vim-gutentags' let g:gutentags_cache_dir="~/.tags" let g:gutentags_file_list_command = {