diff options
| author | Thomas Vigouroux <39092278+vigoux@users.noreply.github.com> | 2020-05-15 15:01:06 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-15 15:01:06 +0200 |
| commit | 9c3211119141dd751b7a045f37fb742c19b75cb2 (patch) | |
| tree | d4000f95f0f472478036a89b19a2f55aadbb5fff /lua/nvim-treesitter.lua | |
| parent | 5a66c38b9ff49f0f0b45afa95816c77e18cc9886 (diff) | |
| parent | 8be2dc64a2e0a94a429d66c411eb7d500566508f (diff) | |
Merge pull request #54 from kyazdani42/feat/expose-api
Expose internal api.
Diffstat (limited to 'lua/nvim-treesitter.lua')
| -rw-r--r-- | lua/nvim-treesitter.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lua/nvim-treesitter.lua b/lua/nvim-treesitter.lua index 5c0dfac7..100324e3 100644 --- a/lua/nvim-treesitter.lua +++ b/lua/nvim-treesitter.lua @@ -5,6 +5,7 @@ local utils = require'nvim-treesitter.utils' local info = require'nvim-treesitter.info' local configs = require'nvim-treesitter.configs' local state = require'nvim-treesitter.state' +local ts_utils = require'nvim-treesitter.ts_utils' local M = {} @@ -55,4 +56,13 @@ function M.statusline(indicator_size) end end +function M.get_buf_state() + local bufnr = api.nvim_get_current_buf() + return state.exposed_state(bufnr) +end + +function M.get_node_api() + return ts_utils +end + return M |
