mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-14 06:58:00 +08:00
24 lines
779 B
VimL
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
|