diff options
| author | Thomas Vigouroux <tomvig38@gmail.com> | 2020-05-05 15:04:01 +0200 |
|---|---|---|
| committer | Thomas Vigouroux <tomvig38@gmail.com> | 2020-05-05 20:06:45 +0200 |
| commit | 7682a1a49f7c3be58df18dfc18ad3ba65dd3be1f (patch) | |
| tree | e3534fa1b90b4769baff692dfbd1d6239e0b5a1a /autoload | |
| parent | Merge pull request #37 from theHamsta/node-movement (diff) | |
| download | nvim-treesitter-7682a1a49f7c3be58df18dfc18ad3ba65dd3be1f.tar nvim-treesitter-7682a1a49f7c3be58df18dfc18ad3ba65dd3be1f.tar.gz nvim-treesitter-7682a1a49f7c3be58df18dfc18ad3ba65dd3be1f.tar.bz2 nvim-treesitter-7682a1a49f7c3be58df18dfc18ad3ba65dd3be1f.tar.lz nvim-treesitter-7682a1a49f7c3be58df18dfc18ad3ba65dd3be1f.tar.xz nvim-treesitter-7682a1a49f7c3be58df18dfc18ad3ba65dd3be1f.tar.zst nvim-treesitter-7682a1a49f7c3be58df18dfc18ad3ba65dd3be1f.zip | |
feat: provide a statusline indicator
It will show the current branch at the cursor going the tree as such.
root->node->subnode->leaf
If an argument is provided to `statusline`, then the tree will be
truncated as follows :
..->subnode->subnode
Diffstat (limited to 'autoload')
| -rw-r--r-- | autoload/nvim_treesitter.vim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/autoload/nvim_treesitter.vim b/autoload/nvim_treesitter.vim new file mode 100644 index 000000000..715befe0f --- /dev/null +++ b/autoload/nvim_treesitter.vim @@ -0,0 +1,3 @@ +function! nvim_treesitter#statusline(len) + return luaeval("require'nvim-treesitter'.statusline(_A)", a:len) +endfunction |
