From c835c7ca10a551dd21fe753c9b497049255838f7 Mon Sep 17 00:00:00 2001 From: Nachuan Tang Date: Sat, 3 Sep 2022 15:09:36 -0400 Subject: [PATCH] add vim-rooter plugin and remove sniprun --- .vimrc.bundles | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.vimrc.bundles b/.vimrc.bundles index 75d5cc9..eb9ace8 100644 --- a/.vimrc.bundles +++ b/.vimrc.bundles @@ -69,6 +69,7 @@ endif Plug 'NLKNguyen/papercolor-theme' + Plug 'airblade/vim-rooter' " only work with nvim > 0.5 " For other versions, just loading the plugin may @@ -82,7 +83,7 @@ Plug 'projekt0n/github-nvim-theme' " partial code execution - Plug 'michaelb/sniprun', {'do': 'bash install.sh'} + " Plug 'michaelb/sniprun', {'do': 'bash install.sh'} endif if g:vim_version >= 0.7 Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'} @@ -110,11 +111,12 @@ if g:vim_type == 'nvim' " } " " michaelb/sniprun { - - nmap r SnipRun - vmap r SnipRun - nmap s SnipReset - nmap c SnipClose + if isdirectory(expand(plugin_dir . "/sniprun")) + nmap r SnipRun + vmap r SnipRun + nmap s SnipReset + nmap c SnipClose + endif " } endif