mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
add parser installer
This commit is contained in:
parent
ac3c2ec2ec
commit
2967ca5203
3 changed files with 81 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue