aboutsummaryrefslogtreecommitdiffstats
path: root/autoload
diff options
context:
space:
mode:
authorStephan Seitz <stephan.seitz@fau.de>2020-09-27 12:13:11 +0200
committerStephan Seitz <stephan.lauf@yahoo.de>2020-10-26 12:42:10 +0100
commitc3b526fe51d6f4dd1dda099d69258909d0abb531 (patch)
treeba5a24810910a298ec632f6d0fbe9cdde6cb3d73 /autoload
parentshow [treesitter] during install (diff)
downloadnvim-treesitter-c3b526fe51d6f4dd1dda099d69258909d0abb531.tar
nvim-treesitter-c3b526fe51d6f4dd1dda099d69258909d0abb531.tar.gz
nvim-treesitter-c3b526fe51d6f4dd1dda099d69258909d0abb531.tar.bz2
nvim-treesitter-c3b526fe51d6f4dd1dda099d69258909d0abb531.tar.lz
nvim-treesitter-c3b526fe51d6f4dd1dda099d69258909d0abb531.tar.xz
nvim-treesitter-c3b526fe51d6f4dd1dda099d69258909d0abb531.tar.zst
nvim-treesitter-c3b526fe51d6f4dd1dda099d69258909d0abb531.zip
feat(install): add "maintained" option to only install maintained parsers
Unmaintained parsers only give users little benefit but take sometimes a a long time to install (e.g. Markdown, Julia, Haskell parser). We could recommend to only install maintained parsers by default.
Diffstat (limited to 'autoload')
-rw-r--r--autoload/nvim_treesitter.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/autoload/nvim_treesitter.vim b/autoload/nvim_treesitter.vim
index a19a74708..2b02db2d8 100644
--- a/autoload/nvim_treesitter.vim
+++ b/autoload/nvim_treesitter.vim
@@ -7,11 +7,11 @@ function! nvim_treesitter#foldexpr() abort
endfunction
function! nvim_treesitter#installable_parsers(arglead, cmdline, cursorpos) abort
- return join(luaeval("require'nvim-treesitter.parsers'.available_parsers()") + ['all'], "\n")
+ return join(luaeval("require'nvim-treesitter.parsers'.available_parsers()") + ['all', 'maintained'], "\n")
endfunction
function! nvim_treesitter#installed_parsers(arglead, cmdline, cursorpos) abort
- return join(luaeval("require'nvim-treesitter.info'.installed_parsers()") + ['all'], "\n")
+ return join(luaeval("require'nvim-treesitter.info'.installed_parsers()") + ['all', 'maintained'], "\n")
endfunction
function! nvim_treesitter#available_modules(arglead, cmdline, cursorpos) abort