aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2019-06-15 12:10:12 +0200
committerBjörn Linse <bjorn.linse@gmail.com>2019-09-28 14:55:43 +0200
commitc8f861b739b4703b1198dc1f88b09edbeb0d9f2e (patch)
tree747e445f9c559a6bb89fec4bed17bf67525fc335 /runtime
parent4ea5e63aa8c866b4fcc9d10f1a26078d2517f96a (diff)
downloadrneovim-c8f861b739b4703b1198dc1f88b09edbeb0d9f2e.tar.gz
rneovim-c8f861b739b4703b1198dc1f88b09edbeb0d9f2e.tar.bz2
rneovim-c8f861b739b4703b1198dc1f88b09edbeb0d9f2e.zip
tree-sitter: rename tree_sitter => treesitter for consistency
Diffstat (limited to 'runtime')
-rw-r--r--runtime/lua/treesitter_demo.lua (renamed from runtime/lua/tree_sitter_demo.lua)1
-rw-r--r--runtime/lua/vim/treesitter.lua (renamed from runtime/lua/vim/tree_sitter.lua)0
-rw-r--r--runtime/plugin/ts_test.vim4
3 files changed, 3 insertions, 2 deletions
diff --git a/runtime/lua/tree_sitter_demo.lua b/runtime/lua/treesitter_demo.lua
index bbfd69109d..82c36f94c0 100644
--- a/runtime/lua/tree_sitter_demo.lua
+++ b/runtime/lua/treesitter_demo.lua
@@ -1,3 +1,4 @@
+-- TODO: externalize this
local a = vim.api
_G.a = vim.api
diff --git a/runtime/lua/vim/tree_sitter.lua b/runtime/lua/vim/treesitter.lua
index 1b5f416b67..1b5f416b67 100644
--- a/runtime/lua/vim/tree_sitter.lua
+++ b/runtime/lua/vim/treesitter.lua
diff --git a/runtime/plugin/ts_test.vim b/runtime/plugin/ts_test.vim
index 9420c2c9d3..15192d8dda 100644
--- a/runtime/plugin/ts_test.vim
+++ b/runtime/plugin/ts_test.vim
@@ -6,8 +6,8 @@ func! TSTest()
return
end
" TODO: module!
- lua theparser = vim.tree_sitter.create_parser(0)
- lua require'tree_sitter_demo'
+ lua theparser = vim.treesitter.create_parser(0)
+ lua require'treesitter_demo'
let g:has_ts = v:true
endfunc