From 8e763332b7bf7b3a426fd8707b7f5aa85823a5ac Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Sun, 2 Oct 2022 11:58:55 +0200 Subject: fix(test): update tests to Nvim 0.8 --- lua/nvim-treesitter/highlight.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lua') diff --git a/lua/nvim-treesitter/highlight.lua b/lua/nvim-treesitter/highlight.lua index c1c20375..d30d1900 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 -- cgit v1.2.3