From 910d2c49a380cf4fc958b43e7508988016dfd8c2 Mon Sep 17 00:00:00 2001 From: Anthony Cicchetti Date: Tue, 7 Jul 2020 18:50:46 -0400 Subject: [PATCH] CtrlP (P) mappings --- playbooks/roles/anyenv/tasks/main.yml | 19 ++++++++++++------- vim/vimrc | 8 ++++++++ 2 files changed, 20 insertions(+), 7 deletions(-) diff --git a/playbooks/roles/anyenv/tasks/main.yml b/playbooks/roles/anyenv/tasks/main.yml index 2749bce..12aa54c 100644 --- a/playbooks/roles/anyenv/tasks/main.yml +++ b/playbooks/roles/anyenv/tasks/main.yml @@ -44,39 +44,44 @@ args: creates: ~/.anyenv/envs/exenv -- name: anyenv plugin dir +- name: anyenv - plugin dir file: path: ~/.anyenv/plugins state: directory -- name: anyenv update plugin +- name: anyenv - update plugin shell: git clone https://github.com/znz/anyenv-update.git ~/.anyenv/plugins/anyenv-update args: creates: ~/.anyenv/plugins/anyenv-update -- name: pyenv virtualenv plugin +- name: pyenv - virtualenv plugin shell: git clone https://github.com/pyenv/pyenv-virtualenv.git ~/.anyenv/envs/pyenv/plugins/pyenv-virtualenv args: creates: ~/.anyenv/envs/pyenv/plugins/pyenv-virtualenv -- name: pyenv default packages plugin +- name: pyenv - default packages plugin shell: git clone https://github.com/jawshooah/pyenv-default-packages.git ~/.anyenv/envs/pyenv/plugins/pyenv-default-packages args: creates: ~/.anyenv/envs/pyenv/plugins/pyenv-default-packages -- name: symlink pyenv-defaults +- name: pyenv - symlink pyenv-defaults file: src: ~/.dotfiles/defaults/default-packages dest: ~/.anyenv/envs/pyenv/default-packages state: link -- name: symlink rbenv-defaults +- name: rbenv - default packages plugin + shell: git clone https://github.com/rbenv/rbenv-default-gems ~/.anyenv/envs/rbenv/plugins/rbenv-default-gems + args: + creates: ~/.anyenv/envs/rbenv/plugins/rbenv-default-gems + +- name: rbenv - symlink rbenv-defaults file: src: ~/.dotfiles/defaults/default-gems dest: ~/.anyenv/envs/rbenv/default-gems state: link -- name: nodenv nvmrc plugin +- name: nodenv - nvmrc plugin shell: git clone https://github.com/ouchxp/nodenv-nvmrc.git ~/.anyenv/envs/nodenv/plugins/nodenv-nvmrc args: creates: ~/.anyenv/envs/nodenv/plugins/nodenv-nvmrc diff --git a/vim/vimrc b/vim/vimrc index 8899389..f9347c9 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -62,6 +62,9 @@ Plug 'Olical/conjure' Plug 'Olical/aniseed' Plug 'bakpakin/fennel.vim' +" CtrlP +Plug 'ctrlpvim/ctrlp.vim' + " Wakatime Plug 'wakatime/vim-wakatime' @@ -91,6 +94,11 @@ Plug 'prabirshrestha/async.vim' call plug#end() +" CtrlP mappings +let g:ctrlp_map = 'p' +let g:ctrlp_cmd = 'CtrlPMixed' +let g:ctrlp_user_command = 'rg --files %s' + " Builtin LSP lua << EOF local nvim_lsp = require'nvim_lsp'