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

docs(telescope): add telescope loadable function

This commit is contained in:
wsdjeg 2022-05-19 00:39:30 +08:00
parent 3daea9e7ae
commit 311a1e5146
2 changed files with 12 additions and 0 deletions

View File

@ -6,6 +6,10 @@
" License: GPLv3 " License: GPLv3
"============================================================================= "=============================================================================
if exists('s:file')
finish
endif
"" ""
" @section telescope, layers-telescope " @section telescope, layers-telescope
" @parentsection layers " @parentsection layers
@ -33,6 +37,12 @@
" <Leader> f r Resumes Unite window " <Leader> f r Resumes Unite window
" < " <
function! SpaceVim#layers#telescope#loadable() abort
return has('nvim-0.7.0')
endfunction
function! SpaceVim#layers#telescope#plugins() abort function! SpaceVim#layers#telescope#plugins() abort
let plugins = [] let plugins = []
call add(plugins, [g:_spacevim_root_dir . 'bundle/telescope.nvim', {'merged' : 0, 'loadconf' : 1}]) call add(plugins, [g:_spacevim_root_dir . 'bundle/telescope.nvim', {'merged' : 0, 'loadconf' : 1}])

View File

@ -8,6 +8,8 @@ description: "This layer provides a heavily customized telescope centric workflo
## Description ## Description
This layer is a heavily customized wrapper for [telescope.nvim](https://github.com/nvim-telescope/telescope.nvim) and it's sources. This layer is a heavily customized wrapper for [telescope.nvim](https://github.com/nvim-telescope/telescope.nvim) and it's sources.
The `telescope` layer is only for nvim 0.7 or above.
## Install ## Install