diff options
author | Lewis Russell <lewis6991@gmail.com> | 2024-01-12 12:44:54 +0000 |
---|---|---|
committer | Lewis Russell <lewis6991@gmail.com> | 2024-01-12 13:01:06 +0000 |
commit | c30f2e3182e3b50e7c03932027ac55edfc8ada4a (patch) | |
tree | edf0a76dba282d946f67fe70fff8c6cbe28e7a82 /test/functional/treesitter/highlight_spec.lua | |
parent | 284e0ad26dd9de90c3a813dd1b357a425eca6bad (diff) | |
download | rneovim-c30f2e3182e3b50e7c03932027ac55edfc8ada4a.tar.gz rneovim-c30f2e3182e3b50e7c03932027ac55edfc8ada4a.tar.bz2 rneovim-c30f2e3182e3b50e7c03932027ac55edfc8ada4a.zip |
test: typing for helpers.meths
Diffstat (limited to 'test/functional/treesitter/highlight_spec.lua')
-rw-r--r-- | test/functional/treesitter/highlight_spec.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/functional/treesitter/highlight_spec.lua b/test/functional/treesitter/highlight_spec.lua index afcb3a8ef6..a5dfd460c0 100644 --- a/test/functional/treesitter/highlight_spec.lua +++ b/test/functional/treesitter/highlight_spec.lua @@ -709,11 +709,11 @@ describe('treesitter highlighting (C)', function() it('@foo.bar groups has the correct fallback behavior', function() local get_hl = function(name) - return meths.get_hl_by_name(name, 1).foreground + return meths.nvim_get_hl_by_name(name, 1).foreground end - meths.set_hl(0, '@foo', { fg = 1 }) - meths.set_hl(0, '@foo.bar', { fg = 2 }) - meths.set_hl(0, '@foo.bar.baz', { fg = 3 }) + meths.nvim_set_hl(0, '@foo', { fg = 1 }) + meths.nvim_set_hl(0, '@foo.bar', { fg = 2 }) + meths.nvim_set_hl(0, '@foo.bar.baz', { fg = 3 }) eq(1, get_hl '@foo') eq(1, get_hl '@foo.a.b.c.d') @@ -725,7 +725,7 @@ describe('treesitter highlighting (C)', function() -- lookup is case insensitive eq(2, get_hl '@FOO.BAR.SPAM') - meths.set_hl(0, '@foo.missing.exists', { fg = 3 }) + meths.nvim_set_hl(0, '@foo.missing.exists', { fg = 3 }) eq(1, get_hl '@foo.missing') eq(3, get_hl '@foo.missing.exists') eq(3, get_hl '@foo.missing.exists.bar') |