From f8c9b80e5729bc7dd4211d650b63946c2c4f7b16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Tue, 27 Nov 2018 12:48:37 +0100 Subject: vim: update completion --- vimrc | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'vimrc') diff --git a/vimrc b/vimrc index 5ae1aab..ae85694 100644 --- a/vimrc +++ b/vimrc @@ -3,10 +3,14 @@ " :diffg BA " get from BASE " :diffg LO " get from LOCAL set nocompatible + +" Ale (required to be before plugin load) +let g:ale_completion_enabled = 1 + filetype off set rtp+=~/.vim/bundle/Vundle.vim call vundle#begin() - +""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" Plugin 'VundleVim/Vundle.vim' " Visual Plugin 'itchyny/lightline.vim' @@ -32,7 +36,7 @@ Plugin 'sirtaj/vim-openscad' Plugin 'tmhedberg/SimpylFold' Plugin 'fedorenchik/qt-support.vim' Plugin 'chr4/nginx.vim' - +""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" call vundle#end() filetype plugin indent on @@ -86,6 +90,7 @@ function TabToogle() endfunction command TabToogle call TabToogle() +" Translate word under cursor nnoremap d :! sdcv -n " Indent guides @@ -153,9 +158,6 @@ let g:UltiSnipsExpandTrigger="" let g:UltiSnipsJumpForwardTrigger="" let g:UltiSnipsJumpBackwardTrigger="" -" Ale -let g:ale_completion_enabled = 1 -let g:ale_completion_delay = 1 -let g:ale_set_highlights = 0 -" To fix random insertion by omnicomplete -set completeopt=menu,menuone,preview,noselect,noinsert +" ALE bidings +nmap [ (ale_go_to_definition) +nmap ] (ale_go_to_definition_in_tab) -- cgit v1.2.3