aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <karel.koci@nic.cz>2018-11-27 12:48:37 +0100
committerKarel Kočí <karel.koci@nic.cz>2018-11-27 12:48:37 +0100
commitf8c9b80e5729bc7dd4211d650b63946c2c4f7b16 (patch)
tree735c7e1c97e1778ea6c6c640712fb49de435b1cd
parentf692b07f619ff5146905f0c794460c346064f2a6 (diff)
downloadmyconfigs-f8c9b80e5729bc7dd4211d650b63946c2c4f7b16.tar.gz
myconfigs-f8c9b80e5729bc7dd4211d650b63946c2c4f7b16.tar.bz2
myconfigs-f8c9b80e5729bc7dd4211d650b63946c2c4f7b16.zip
vim: update completion
-rw-r--r--vim/ftplugin/python.vim2
-rw-r--r--vimrc18
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)