diff options
| author | kiyan42 <yazdani.kiyan@protonmail.com> | 2020-06-19 13:51:09 +0200 |
|---|---|---|
| committer | kiyan42 <yazdani.kiyan@protonmail.com> | 2020-06-19 14:03:01 +0200 |
| commit | cabe61ac19a2d0377a46ef48499eb292e12ae5fb (patch) | |
| tree | 9b1ae62bb6bd12550e09d6edb0d444c8a509aeb0 /README.md | |
| parent | 38af29a912a607d3d703f57b840bfc61671679cc (diff) | |
update docs
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 14 |
1 files changed, 4 insertions, 10 deletions
@@ -131,19 +131,13 @@ Some of these features are : You can find the roadmap [here](https://github.com/nvim-treesitter/nvim-treesitter/projects/1). The roadmap and all features of this plugin are open to change, and any suggestion will be highly appreciated! -## Api +## Utils -Nvim-treesitter exposes an api to extend node capabilites. You can retrieve the api like this: +you can get some utility functions with ```lua -local ts_node_api = require 'nvim-treesitter'.get_node_api() +local ts_utils = require 'nvim-treesitter.ts_utils' ``` - -You can also retrieve the current state of the current buffer with: -```lua -local buf_state = require'nvim-treesitter'.get_buf_state() -``` - -More information is available in neovim documentation (`:help nvim-treesitter-api`). +More information is available in neovim documentation (`:help nvim-treesitter-utils`). ## Supported Languages |
