From: Maximilian Friedersdorff Date: Fri, 14 May 2021 08:00:35 +0000 (+0100) Subject: add ctrlp back X-Git-Url: https://git.friedersdorff.com/?a=commitdiff_plain;h=63f41e77f02bd363180a5c5a6178ba279e7f5669;p=max%2Fsaltfiles.git add ctrlp back --- diff --git a/states/vim/arch.sls b/states/vim/arch.sls index 0607a0f..21d31ee 100644 --- a/states/vim/arch.sls +++ b/states/vim/arch.sls @@ -8,3 +8,4 @@ install vim: - python-pylint - flake8 - python-pip + - the_silver_searcher diff --git a/states/vim/files/vimrc b/states/vim/files/vimrc index d645f78..0c5213f 100644 --- a/states/vim/files/vimrc +++ b/states/vim/files/vimrc @@ -33,6 +33,7 @@ Plugin 'vim-python/python-syntax' Plugin 'majutsushi/tagbar' Plugin 'heavenshell/vim-pydocstring' Plugin 'altercation/vim-colors-solarized' +Plugin 'ctrlpvim/ctrlp.vim' " All of your Plugins must be added before the following line call vundle#end() " required @@ -158,3 +159,8 @@ let g:pydocstring_doq_path= "/home/max/.local/bin/doq" " Clipboard noremap y "+y noremap p "+p + +let g:ctrlp_cache_dir = $HOME . '/.cache/ctrlp' +if executable('ag') + let g:ctrlp_user_command = 'ag %s -l --nocolor -g ""' +endif diff --git a/states/vim/init.sls b/states/vim/init.sls index e1e595f..82ecafc 100644 --- a/states/vim/init.sls +++ b/states/vim/init.sls @@ -54,3 +54,9 @@ doq: - name: doq - user: {{ grains['user'] }} - upgrade: True + +pylint_django: + pip.installed: + - name: pylint-django + - user: {{ grains['user'] }} + - upgrade: True