From f8c9b80e5729bc7dd4211d650b63946c2c4f7b16 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= <karel.koci@nic.cz>
Date: Tue, 27 Nov 2018 12:48:37 +0100
Subject: vim: update completion

---
 vim/ftplugin/python.vim |  2 +-
 vimrc                   | 18 ++++++++++--------
 2 files changed, 11 insertions(+), 9 deletions(-)

diff --git a/vim/ftplugin/python.vim b/vim/ftplugin/python.vim
index 42d5eff..bc7ff7b 100644
--- a/vim/ftplugin/python.vim
+++ b/vim/ftplugin/python.vim
@@ -1,5 +1,5 @@
 setlocal colorcolumn=79
 setlocal textwidth=79
 
-let b:ale_linters = ['flake8', 'pylint', 'pyls']
+let b:ale_linters = ['pyls']
 let b:ale_fixers = ['autopep8', 'isort', 'black', 'add_blank_lines_for_python_control_statements', 'remove_trailing_lines', 'trim_whitespace']
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 <leader>d :! sdcv -n <cword><cr>
 
 " Indent guides
@@ -153,9 +158,6 @@ let g:UltiSnipsExpandTrigger="<c-h>"
 let g:UltiSnipsJumpForwardTrigger="<c-j>"
 let g:UltiSnipsJumpBackwardTrigger="<c-k>"
 
-" 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 <leader>[ <Plug>(ale_go_to_definition)
+nmap <leader>] <Plug>(ale_go_to_definition_in_tab)
-- 
cgit v1.2.3