From 22939866c009c841d87e4de4d37c9e73efa8a10a Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Thu, 21 Apr 2022 00:20:42 +0800 Subject: [PATCH] fix(treesitter): add loadable function --- autoload/SpaceVim/layers/treesitter.vim | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/autoload/SpaceVim/layers/treesitter.vim b/autoload/SpaceVim/layers/treesitter.vim index a9cb8ec8a..55602f198 100644 --- a/autoload/SpaceVim/layers/treesitter.vim +++ b/autoload/SpaceVim/layers/treesitter.vim @@ -27,3 +27,9 @@ function! SpaceVim#layers#treesitter#health() abort call SpaceVim#layers#treesitter#plugins() return 1 endfunction + +function! SpaceVim#layers#treesitter#loadable() abort + + return has('nvim') + +endfunction