add parser installer

This commit is contained in:
kiyan42 2020-04-19 14:43:55 +02:00
parent ac3c2ec2ec
commit 2967ca5203
3 changed files with 81 additions and 0 deletions

View file

@ -1,5 +1,6 @@
local api = vim.api
local parsers = require'nvim-treesitter.parsers'
local install = require'nvim-treesitter.install'
local M = {}
@ -10,4 +11,8 @@ function M.setup(lang)
end
end
-- To install, run `:lua require'nvim-treesitter'.install_parser('language')`
-- we should add a vim layer over the lua function
M.install_parser = install.install_parser
return M