aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2022-10-02 11:58:55 +0200
committerStephan Seitz <stephan.seitz@fau.de>2022-10-02 09:29:34 -0400
commit8e763332b7bf7b3a426fd8707b7f5aa85823a5ac (patch)
treea64cd852087b85d6c21f15022692966b9924a8ce /lua
parentUpdate lockfile.json (diff)
downloadnvim-treesitter-8e763332b7bf7b3a426fd8707b7f5aa85823a5ac.tar
nvim-treesitter-8e763332b7bf7b3a426fd8707b7f5aa85823a5ac.tar.gz
nvim-treesitter-8e763332b7bf7b3a426fd8707b7f5aa85823a5ac.tar.bz2
nvim-treesitter-8e763332b7bf7b3a426fd8707b7f5aa85823a5ac.tar.lz
nvim-treesitter-8e763332b7bf7b3a426fd8707b7f5aa85823a5ac.tar.xz
nvim-treesitter-8e763332b7bf7b3a426fd8707b7f5aa85823a5ac.tar.zst
nvim-treesitter-8e763332b7bf7b3a426fd8707b7f5aa85823a5ac.zip
fix(test): update tests to Nvim 0.8
Diffstat (limited to 'lua')
-rw-r--r--lua/nvim-treesitter/highlight.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/nvim-treesitter/highlight.lua b/lua/nvim-treesitter/highlight.lua
index c1c20375a..d30d19003 100644
--- a/lua/nvim-treesitter/highlight.lua
+++ b/lua/nvim-treesitter/highlight.lua
@@ -10,7 +10,7 @@ local M = {}
-- Note: Some highlight groups may not be applied upstream, some may be experimental
-- TODO(clason): deprecated and will be removed for Nvim 0.8
-local default_map = {
+M.default_map = {
["annotation"] = "TSAnnotation",
["attribute"] = "TSAttribute",
@@ -132,7 +132,7 @@ end
local function link_all_captures()
if link_captures then
- for capture, hlgroup in pairs(default_map) do
+ for capture, hlgroup in pairs(M.default_map) do
link_captures(capture, hlgroup)
end
end