nvim-treesitter/lua/nvim-treesitter.lua

19 lines
495 B
Lua
Raw Normal View History

local api = vim.api
local parsers = require'nvim-treesitter.parsers'
2020-04-19 14:43:55 +02:00
local install = require'nvim-treesitter.install'
local M = {}
-- This function sets up everythin needed for a given language
-- this is the main interface through the plugin
function M.setup(lang)
if parsers.has_parser(lang) then
end
end
2020-04-19 14:43:55 +02:00
-- 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