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