From 27a0e66413b43c8909a5c073e995b3864e9adf19 Mon Sep 17 00:00:00 2001 From: Nachuan Tang Date: Fri, 26 Aug 2022 12:01:20 -0400 Subject: [PATCH 1/3] fix typo --- .vimrc.bundles | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.vimrc.bundles b/.vimrc.bundles index e6b699c..1e99a1d 100644 --- a/.vimrc.bundles +++ b/.vimrc.bundles @@ -103,7 +103,7 @@ if g:vim_type == 'nvim' " } - " lukas-reineke/indent-blankline.nvimt-blankline.nvim { + " lukas-reineke/indent-blankline.nvim { let g:indent_blankline_use_treesitter = v:true let g:indent_blankline_show_current_context = v:true "let g:indent_blankline_show_current_context_start = v:true From c835c7ca10a551dd21fe753c9b497049255838f7 Mon Sep 17 00:00:00 2001 From: Nachuan Tang Date: Sat, 3 Sep 2022 15:09:36 -0400 Subject: [PATCH 2/3] 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 From a53e4402b81d535dc7af284f79a42553466498ae Mon Sep 17 00:00:00 2001 From: Nachuan Tang Date: Sat, 3 Sep 2022 15:17:22 -0400 Subject: [PATCH 3/3] add vim-rooter config to recognize vscode project --- .vimrc.bundles | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/.vimrc.bundles b/.vimrc.bundles index eb9ace8..2457228 100644 --- a/.vimrc.bundles +++ b/.vimrc.bundles @@ -131,17 +131,24 @@ if g:vim_type == 'nvim' endif endif " } + + " airblade/vim-rooter { + if isdirectory(expand(plugin_dir . "/vim-rooter")) + let g:rooter_patterns = ['.vscode', '.git'] + endif + " } + " godlygeek/tabular { - if isdirectory(expand(plugin_dir . "/tabular")) - nmap t= :Tabularize /= - vmap t= :Tabularize /= + if isdirectory(expand(plugin_dir . "/tabular")) + nmap t= :Tabularize /= + vmap t= :Tabularize /= - nmap t\| :Tab /\| - vmap t\| :Tab /\| + nmap t\| :Tab /\| + vmap t\| :Tab /\| - nmap t: :Tab /:\zs - vmap t: :Tab /:\zs - endif + nmap t: :Tab /:\zs + vmap t: :Tab /:\zs + endif " }