1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 07:20:04 +08:00

fix(zettelkasten): check layer_isLoaded before load extension

close https://github.com/SpaceVim/SpaceVim/issues/4807
This commit is contained in:
wsdjeg 2023-03-26 13:03:30 +08:00
parent 468681284d
commit 973090c2d8

View File

@ -4,7 +4,9 @@ lua require('telescope').load_extension('project')
lua require('telescope').load_extension('scriptnames')
lua require('telescope').load_extension('neoyank')
lua require('telescope').load_extension('task')
lua require('telescope').load_extension('zettelkasten_template')
if SpaceVim#layers#isLoaded('zettelkasten')
lua require('telescope').load_extension('zettelkasten_template')
endif
if filereadable(g:_spacevim_root_dir . 'bundle/telescope-fzf-native.nvim/build/libfzf.so')
\ || filereadable(g:_spacevim_root_dir . 'bundle/telescope-fzf-native.nvim/build/libfzf.dll')
lua require('telescope').load_extension('fzf')