@@ -176,7 +176,8 @@ let cvim_plugins.vim_surround = {
176176" Show available keybindings.
177177let cvim_plugins.vim_which_key = {
178178 \ ' name' : ' liuchengxu/vim-which-key' ,
179- \ ' cmd' : [' WhichKey' ] ,
179+ \ ' event' : ' VeryLazy' ,
180+ \ ' cmd' : [' WhichKey' ],
180181 \ ' setting' : " $HOME/.config/cvim/settings/vim-which-key.vim"
181182 \ }" "
182183if g: vimDistribution == # g: VIM_FLAVOR_VIM
@@ -306,11 +307,14 @@ elseif g:vimDistribution ==# g:VIM_FLAVOR_NEOVIM
306307 " mason: Language Server Protocols binary installer
307308 let cvim_plugins.mason = {
308309 \ ' name' : ' mason-org/mason.nvim' ,
310+ \ ' post_update_hook' : ' :MasonUpdate' ,
311+ \ ' cmd' : [" Mason" ," MasonInstall" ," MasonUninstall" ," MasonUninstallAll" ," MasonLog" ],
309312 \ ' setting' : " $HOME/.config/cvim/settings/nvim_mason.lua"
310313 \ }
311314 " Bridge layer between lspconfig and mason
312315 let cvim_plugins.mason_lspconfig = {
313316 \ ' name' : ' mason-org/mason-lspconfig.nvim' ,
317+ \ ' event' : ' BufReadPost' ,
314318 \ ' dependencies' : {
315319 \ ' mason-org/mason.nvim' :{' lazy' : 1 },
316320 \ ' neovim/nvim-lspconfig' :{' lazy' : 1 },
@@ -358,6 +362,8 @@ elseif g:vimDistribution ==# g:VIM_FLAVOR_NEOVIM
358362 " treesitter: parser generator to provide syntax highliting
359363 let cvim_plugins.treesitter = {
360364 \ ' name' : ' nvim-treesitter/nvim-treesitter' ,
365+ \ ' event' : ' BufReadPost' ,
366+ \ ' cmd' : [" TSInstall" , " TSUpdate" , " TSInstallInfo" , " TSEnable" , " TSDisable" , " TSModuleInfo" , " TSUninstall" ],
361367 \ ' post_update_hook' : ' :TSUpdate' ,
362368 \ ' setting' : " $HOME/.config/cvim/settings/nvim_treesitter.lua"
363369 \ }
@@ -447,7 +453,8 @@ elseif g:vimDistribution ==# g:VIM_FLAVOR_NEOVIM
447453 let cvim_plugins.orgmode = {
448454 \ ' name' : ' nvim-orgmode/orgmode' ,
449455 \ ' lazy' : 1 ,
450- \ ' event' : ' VeryLazy' , ' setting' : " $HOME/.config/cvim/settings/neovim_orgmode.lua"
456+ \ ' event' : ' VeryLazy' ,
457+ \ ' setting' : " $HOME/.config/cvim/settings/neovim_orgmode.lua"
451458 \ }
452459endif
453460" Display vertical thin lines at each indentation level for code
0 commit comments