mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 13:10:04 +08:00
fix(zettelkasten): check layer_isLoaded
before load extension
close https://github.com/SpaceVim/SpaceVim/issues/4807
This commit is contained in:
parent
468681284d
commit
973090c2d8
@ -4,7 +4,9 @@ lua require('telescope').load_extension('project')
|
|||||||
lua require('telescope').load_extension('scriptnames')
|
lua require('telescope').load_extension('scriptnames')
|
||||||
lua require('telescope').load_extension('neoyank')
|
lua require('telescope').load_extension('neoyank')
|
||||||
lua require('telescope').load_extension('task')
|
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')
|
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')
|
\ || filereadable(g:_spacevim_root_dir . 'bundle/telescope-fzf-native.nvim/build/libfzf.dll')
|
||||||
lua require('telescope').load_extension('fzf')
|
lua require('telescope').load_extension('fzf')
|
||||||
|
Loading…
Reference in New Issue
Block a user