aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/highlight_spec.lua
diff options
context:
space:
mode:
authorLewis Russell <lewis6991@gmail.com>2024-01-12 12:44:54 +0000
committerLewis Russell <lewis6991@gmail.com>2024-01-12 13:01:06 +0000
commitc30f2e3182e3b50e7c03932027ac55edfc8ada4a (patch)
treeedf0a76dba282d946f67fe70fff8c6cbe28e7a82 /test/functional/ui/highlight_spec.lua
parent284e0ad26dd9de90c3a813dd1b357a425eca6bad (diff)
downloadrneovim-c30f2e3182e3b50e7c03932027ac55edfc8ada4a.tar.gz
rneovim-c30f2e3182e3b50e7c03932027ac55edfc8ada4a.tar.bz2
rneovim-c30f2e3182e3b50e7c03932027ac55edfc8ada4a.zip
test: typing for helpers.meths
Diffstat (limited to 'test/functional/ui/highlight_spec.lua')
-rw-r--r--test/functional/ui/highlight_spec.lua30
1 files changed, 15 insertions, 15 deletions
diff --git a/test/functional/ui/highlight_spec.lua b/test/functional/ui/highlight_spec.lua
index 54c14fb44a..857fd29f19 100644
--- a/test/functional/ui/highlight_spec.lua
+++ b/test/functional/ui/highlight_spec.lua
@@ -2403,13 +2403,13 @@ describe('highlight namespaces', function()
[10] = { bold = true, foreground = Screen.colors.SeaGreen },
}
- ns1 = meths.create_namespace 'grungy'
- ns2 = meths.create_namespace 'ultrared'
+ ns1 = meths.nvim_create_namespace 'grungy'
+ ns2 = meths.nvim_create_namespace 'ultrared'
- meths.set_hl(ns1, 'Normal', { bg = 'DarkGrey' })
- meths.set_hl(ns1, 'NonText', { bg = 'DarkOrange4', fg = 'DarkCyan', italic = true })
- meths.set_hl(ns2, 'Normal', { bg = 'DarkMagenta' })
- meths.set_hl(ns2, 'NonText', { fg = 'Crimson' })
+ meths.nvim_set_hl(ns1, 'Normal', { bg = 'DarkGrey' })
+ meths.nvim_set_hl(ns1, 'NonText', { bg = 'DarkOrange4', fg = 'DarkCyan', italic = true })
+ meths.nvim_set_hl(ns2, 'Normal', { bg = 'DarkMagenta' })
+ meths.nvim_set_hl(ns2, 'NonText', { fg = 'Crimson' })
end)
it('can be used globally', function()
@@ -2421,7 +2421,7 @@ describe('highlight namespaces', function()
]],
}
- meths.set_hl_ns(ns1)
+ meths.nvim_set_hl_ns(ns1)
screen:expect {
grid = [[
{2:^ }|
@@ -2430,7 +2430,7 @@ describe('highlight namespaces', function()
]],
}
- meths.set_hl_ns(ns2)
+ meths.nvim_set_hl_ns(ns2)
screen:expect {
grid = [[
{4:^ }|
@@ -2439,7 +2439,7 @@ describe('highlight namespaces', function()
]],
}
- meths.set_hl_ns(0)
+ meths.nvim_set_hl_ns(0)
screen:expect {
grid = [[
^ |
@@ -2450,13 +2450,13 @@ describe('highlight namespaces', function()
end)
it('can be used per window', function()
- local win1 = meths.get_current_win()
+ local win1 = meths.nvim_get_current_win()
command 'split'
- local win2 = meths.get_current_win()
+ local win2 = meths.nvim_get_current_win()
command 'split'
- meths.win_set_hl_ns(win1, ns1)
- meths.win_set_hl_ns(win2, ns2)
+ meths.nvim_win_set_hl_ns(win1, ns1)
+ meths.nvim_win_set_hl_ns(win2, ns2)
screen:expect {
grid = [[
@@ -2483,7 +2483,7 @@ describe('highlight namespaces', function()
]],
}
- meths.set_hl(0, 'EndOfBuffer', { fg = '#333333' })
+ meths.nvim_set_hl(0, 'EndOfBuffer', { fg = '#333333' })
screen:expect {
grid = [[
^ |
@@ -2508,7 +2508,7 @@ describe('highlight namespaces', function()
it('Normal in set_hl #25474', function()
command('highlight Ignore guifg=bg ctermfg=White')
- meths.set_hl(0, 'Normal', { bg = '#333333' })
+ meths.nvim_set_hl(0, 'Normal', { bg = '#333333' })
command('highlight Ignore')
screen:expect {
grid = [[