From 63f41e77f02bd363180a5c5a6178ba279e7f5669 Mon Sep 17 00:00:00 2001 From: Maximilian Friedersdorff Date: Fri, 14 May 2021 09:00:35 +0100 Subject: [PATCH] add ctrlp back --- states/vim/arch.sls | 1 + states/vim/files/vimrc | 6 ++++++ states/vim/init.sls | 6 ++++++ 3 files changed, 13 insertions(+) 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 -- 2.44.0