diff options
author | Lewis Russell <lewis6991@gmail.com> | 2024-01-12 17:59:57 +0000 |
---|---|---|
committer | Lewis Russell <lewis6991@gmail.com> | 2024-01-12 18:59:14 +0000 |
commit | 795f896a5772d5e0795f86642bdf90c82efac45c (patch) | |
tree | 308f04fbee18d2ec3f00c12a8bec96b84d8907f0 /test/functional/treesitter/highlight_spec.lua | |
parent | 4f81f506f96f8b5bfcf00e952ceb492d3ce9dc6e (diff) | |
download | rneovim-795f896a5772d5e0795f86642bdf90c82efac45c.tar.gz rneovim-795f896a5772d5e0795f86642bdf90c82efac45c.tar.bz2 rneovim-795f896a5772d5e0795f86642bdf90c82efac45c.zip |
test: rename (meths, funcs) -> (api, fn)
Diffstat (limited to 'test/functional/treesitter/highlight_spec.lua')
-rw-r--r-- | test/functional/treesitter/highlight_spec.lua | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test/functional/treesitter/highlight_spec.lua b/test/functional/treesitter/highlight_spec.lua index d91dff096c..f4f7bc691c 100644 --- a/test/functional/treesitter/highlight_spec.lua +++ b/test/functional/treesitter/highlight_spec.lua @@ -6,7 +6,7 @@ local insert = helpers.insert local exec_lua = helpers.exec_lua local feed = helpers.feed local command = helpers.command -local meths = helpers.meths +local api = helpers.api local eq = helpers.eq before_each(clear) @@ -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.nvim_get_hl_by_name(name, 1).foreground + return api.nvim_get_hl_by_name(name, 1).foreground end - 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 }) + api.nvim_set_hl(0, '@foo', { fg = 1 }) + api.nvim_set_hl(0, '@foo.bar', { fg = 2 }) + api.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.nvim_set_hl(0, '@foo.missing.exists', { fg = 3 }) + api.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') @@ -772,7 +772,7 @@ describe('treesitter highlighting (help)', function() ]], } - helpers.meths.nvim_buf_set_text(0, 0, 1, 0, 5, { 'lua' }) + helpers.api.nvim_buf_set_text(0, 0, 1, 0, 5, { 'lua' }) screen:expect { grid = [[ @@ -785,7 +785,7 @@ describe('treesitter highlighting (help)', function() ]], } - helpers.meths.nvim_buf_set_text(0, 0, 1, 0, 4, { 'ruby' }) + helpers.api.nvim_buf_set_text(0, 0, 1, 0, 4, { 'ruby' }) screen:expect { grid = [[ |