diff --git a/autoload/SpaceVim/layers/telescope.vim b/autoload/SpaceVim/layers/telescope.vim index 7fe6abe58..8f3758938 100644 --- a/autoload/SpaceVim/layers/telescope.vim +++ b/autoload/SpaceVim/layers/telescope.vim @@ -6,6 +6,10 @@ " License: GPLv3 "============================================================================= +if exists('s:file') + finish +endif + "" " @section telescope, layers-telescope " @parentsection layers @@ -33,6 +37,12 @@ " f r Resumes Unite window " < +function! SpaceVim#layers#telescope#loadable() abort + + return has('nvim-0.7.0') + +endfunction + function! SpaceVim#layers#telescope#plugins() abort let plugins = [] call add(plugins, [g:_spacevim_root_dir . 'bundle/telescope.nvim', {'merged' : 0, 'loadconf' : 1}]) diff --git a/docs/layers/telescope.md b/docs/layers/telescope.md index d9e376ac4..757ea0f7d 100644 --- a/docs/layers/telescope.md +++ b/docs/layers/telescope.md @@ -8,6 +8,8 @@ description: "This layer provides a heavily customized telescope centric workflo ## Description 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