1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-14 07:07:58 +08:00
SpaceVim/autoload/SpaceVim/layers/treesitter.vim
2021-10-05 16:22:39 +08:00

24 lines
779 B
VimL

"=============================================================================
" treesitter.vim --- treesitter layer for SpaceVim
" Copyright (c) 2016-2019 Wang Shidong & Contributors
" Author: Wang Shidong < wsdjeg@outlook.com >
" URL: https://spacevim.org
" License: GPLv3
"=============================================================================
""
" @section treesitter, layers-treesitter
" @parentsection layers
" This layer provides treesitter support for SpaceVim.
function! SpaceVim#layers#treesitter#plugins() abort
let plugins = []
call add(plugins, ['nvim-treesitter/nvim-treesitter', {'do' : ':TSUpdate'}])
return plugins
endfunction
function! SpaceVim#layers#treesitter#health() abort
call SpaceVim#layers#treesitter#plugins()
return 1
endfunction