aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorDundar Göc <gocdundar@gmail.com>2021-11-01 22:35:31 +0100
committerStephan Seitz <stephan.seitz@fau.de>2021-11-02 23:47:48 +0100
commit6a4fdb317d42a8462621764ff97ad3bc8ff496cf (patch)
tree7bb071c1bbfb03f91fcc03423a403888c4ff6246 /lua
parentAdd `ftdetect` setup for `glimmer` parser. (#1973) (diff)
downloadnvim-treesitter-6a4fdb317d42a8462621764ff97ad3bc8ff496cf.tar
nvim-treesitter-6a4fdb317d42a8462621764ff97ad3bc8ff496cf.tar.gz
nvim-treesitter-6a4fdb317d42a8462621764ff97ad3bc8ff496cf.tar.bz2
nvim-treesitter-6a4fdb317d42a8462621764ff97ad3bc8ff496cf.tar.lz
nvim-treesitter-6a4fdb317d42a8462621764ff97ad3bc8ff496cf.tar.xz
nvim-treesitter-6a4fdb317d42a8462621764ff97ad3bc8ff496cf.tar.zst
nvim-treesitter-6a4fdb317d42a8462621764ff97ad3bc8ff496cf.zip
chore: fix typos
Diffstat (limited to 'lua')
-rw-r--r--lua/nvim-treesitter/fold.lua2
-rw-r--r--lua/nvim-treesitter/locals.lua2
-rw-r--r--lua/nvim-treesitter/query_predicates.lua2
3 files changed, 3 insertions, 3 deletions
diff --git a/lua/nvim-treesitter/fold.lua b/lua/nvim-treesitter/fold.lua
index 38e03dbe8..01a7c08e9 100644
--- a/lua/nvim-treesitter/fold.lua
+++ b/lua/nvim-treesitter/fold.lua
@@ -79,7 +79,7 @@ local folds_levels = tsutils.memoize_by_buf_tick(function(bufnr)
-- ( \n ( \n )) \n (( \n ) \n )
-- versus
-- ( \n ( \n ) \n ( \n ) \n )
- -- If it did have such a mechansim, (trimmed_level - last_trimmed_level)
+ -- If it did have such a mechanism, (trimmed_level - last_trimmed_level)
-- would be the correct number of starts to pass on.
if trimmed_level - last_trimmed_level > 0 then
prefix = ">"
diff --git a/lua/nvim-treesitter/locals.lua b/lua/nvim-treesitter/locals.lua
index 6f167d36b..e0da2d02e 100644
--- a/lua/nvim-treesitter/locals.lua
+++ b/lua/nvim-treesitter/locals.lua
@@ -177,7 +177,7 @@ end)
--
-- "parent": Uses the parent of the containing scope, basically, skipping a scope
-- "global": Uses the top most scope
--- "local": Uses the containg scope of the definition. This is the default
+-- "local": Uses the containing scope of the definition. This is the default
--
-- @param node: the definition node
-- @param bufnr: the buffer
diff --git a/lua/nvim-treesitter/query_predicates.lua b/lua/nvim-treesitter/query_predicates.lua
index 20cb42743..be713304c 100644
--- a/lua/nvim-treesitter/query_predicates.lua
+++ b/lua/nvim-treesitter/query_predicates.lua
@@ -99,7 +99,7 @@ query.add_predicate("has-type?", function(match, pattern, bufnr, pred)
return vim.tbl_contains(types, node:type())
end)
--- Just avoid some anoying warnings for this directive
+-- Just avoid some annoying warnings for this directive
query.add_directive("make-range!", function() end)
query.add_directive("downcase!", function(match, _, bufnr, pred, metadata)