From c2afe458479d5df0445ce8153c5aaf2ac4fa1f46 Mon Sep 17 00:00:00 2001 From: Nachuan Tang Date: Sat, 6 Aug 2022 15:38:48 -0400 Subject: [PATCH] prepare for lua config --- .vimrc.bundles | 47 +++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 41 insertions(+), 6 deletions(-) diff --git a/.vimrc.bundles b/.vimrc.bundles index 06960c7..7a71f88 100644 --- a/.vimrc.bundles +++ b/.vimrc.bundles @@ -74,8 +74,14 @@ " only work with nvim > 0.5 " For other versions, just loading the plugin may " cause error - if g:vim_type == 'nvim' && g:vim_version > 0.5 + if g:vim_type == 'nvim' + if g:vim_version >= 0.5 Plug 'xiyaowong/nvim-transparent' + Plug 'lukas-reineke/indent-blankline.nvim' + endif + if g:vim_version >= 0.7 + Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'} + endif endif Plug 'EdenEast/nightfox.nvim' @@ -85,6 +91,38 @@ " Plugin_Preferences " { +" +" nvim > 0.5 or above plugin { + +if g:vim_type == 'nvim' + if g:vim_version >= 0.5 + " xiyaowong/nvim-transparent { + + " } + + " lukas-reineke/indent-blankline.nvim { + let g:indent_blankline_use_treesitter = v:true + let g:indent_blankline_show_current_context = v:true + " } + endif + + if g:vim_version >= 0.7 + " nvim-treesitter/nvim-treesitter { + + call v:lua.require'nvim-treesitter.configs'.setup { + ensure_installed = { "c", "bash", "lua" }, + sync_install = false, + auto_install = true, + ignore_install = { "javascript" }, + highlight = { + enable = true, + additional_vim_regex_highlighting = false, + }, + } + " } + endif +endif +" } " godlygeek/tabular { if isdirectory(expand(plugin_dir . "/tabular")) nmap t= :Tabularize /= @@ -99,10 +137,6 @@ " } - " xiyaowong/nvim-transparent { - - " } - " NerdTree { if isdirectory(expand(plugin_dir . "/nerdtree")) let g:NERDShutUp=1 @@ -197,7 +231,8 @@ " what to use for dark theme let g:dark_theme = 'default' - let g:airline_dark_theme = "wombat" + let g:airline_dark_theme = "deus" + " what to use for light theme let g:light_theme = 'default' let g:airline_light_theme = "silver"