aboutsummaryrefslogtreecommitdiff
path: root/runtime/plugin
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2019-06-07 18:19:59 +0200
committerBjörn Linse <bjorn.linse@gmail.com>2019-09-28 14:55:43 +0200
commit1e9e2451bef21ff705e677802d1b0980356f1f86 (patch)
tree27ea9d1f928b9de46d864bf348ddfa196ae2d127 /runtime/plugin
parent005b6d638caa200711bf5960e0c0d70ba5721c94 (diff)
downloadrneovim-1e9e2451bef21ff705e677802d1b0980356f1f86.tar.gz
rneovim-1e9e2451bef21ff705e677802d1b0980356f1f86.tar.bz2
rneovim-1e9e2451bef21ff705e677802d1b0980356f1f86.zip
tree-sitter: objectify API
Diffstat (limited to 'runtime/plugin')
-rw-r--r--runtime/plugin/ts_test.vim3
1 files changed, 1 insertions, 2 deletions
diff --git a/runtime/plugin/ts_test.vim b/runtime/plugin/ts_test.vim
index d048dbe7c8..76318163f6 100644
--- a/runtime/plugin/ts_test.vim
+++ b/runtime/plugin/ts_test.vim
@@ -6,9 +6,8 @@ func! TSTest()
return
end
" TODO: module!
- lua require'vim.tree_sitter'
+ lua theparser = require'vim.tree_sitter'.create_parser(0)
lua require'tree_sitter_demo'
- lua theparser = create_parser(vim.api.nvim_get_current_buf())
let g:has_ts = v:true
endfunc