diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2019-06-09 13:26:48 +0200 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2019-09-28 14:55:43 +0200 |
commit | 4ea5e63aa8c866b4fcc9d10f1a26078d2517f96a (patch) | |
tree | 057fc3138c63438b1e945ef8257cfe179803d958 /src | |
parent | afba23099fccc929fd0319a9a965a7b727407c7a (diff) | |
download | rneovim-4ea5e63aa8c866b4fcc9d10f1a26078d2517f96a.tar.gz rneovim-4ea5e63aa8c866b4fcc9d10f1a26078d2517f96a.tar.bz2 rneovim-4ea5e63aa8c866b4fcc9d10f1a26078d2517f96a.zip |
tree-sitter: add basic testing on ci
build tree-sitter c parser on ci for testing purposes
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/lua/executor.c | 2 | ||||
-rw-r--r-- | src/nvim/lua/vim.lua | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/nvim/lua/executor.c b/src/nvim/lua/executor.c index ae53bfce6a..23c4fcabbc 100644 --- a/src/nvim/lua/executor.c +++ b/src/nvim/lua/executor.c @@ -841,5 +841,5 @@ static void nlua_add_treesitter(lua_State *const lstate) FUNC_ATTR_NONNULL_ALL lua_setfield(lstate, -2, "_create_ts_parser"); lua_pushcfunction(lstate, ts_lua_register_lang); - lua_setfield(lstate, -2, "ts_add_language"); + lua_setfield(lstate, -2, "_ts_add_language"); } diff --git a/src/nvim/lua/vim.lua b/src/nvim/lua/vim.lua index b1a684b977..c38926fe24 100644 --- a/src/nvim/lua/vim.lua +++ b/src/nvim/lua/vim.lua @@ -232,6 +232,9 @@ local function __index(t, key) if key == 'inspect' then t.inspect = require('vim.inspect') return t.inspect + elseif key == 'tree_sitter' then + t.tree_sitter = require('vim.tree_sitter') + return t.tree_sitter elseif require('vim.shared')[key] ~= nil then -- Expose all `vim.shared` functions on the `vim` module. t[key] = require('vim.shared')[key] |