mirror of
https://github.com/neovim/neovim.git
synced 2025-12-10 16:42:42 +00:00
feat(defaults): jump between :terminal shell prompts with ]]/[[ #32736
This commit is contained in:
@@ -16,7 +16,7 @@ local assert_alive = n.assert_alive
|
||||
local pcall_err = t.pcall_err
|
||||
|
||||
describe('decorations providers', function()
|
||||
local screen
|
||||
local screen ---@type test.functional.ui.screen
|
||||
before_each(function()
|
||||
clear()
|
||||
screen = Screen.new(40, 8)
|
||||
@@ -52,6 +52,7 @@ describe('decorations providers', function()
|
||||
posp = getmark(mark, false);
|
||||
restore_buffer(&save_buf); ]]
|
||||
|
||||
--- @return integer
|
||||
local function setup_provider(code)
|
||||
return exec_lua ([[
|
||||
local api = vim.api
|
||||
@@ -848,7 +849,8 @@ for _,item in ipairs(items) do
|
||||
end]]
|
||||
|
||||
describe('extmark decorations', function()
|
||||
local screen, ns
|
||||
local screen ---@type test.functional.ui.screen
|
||||
local ns ---@type integer
|
||||
before_each( function()
|
||||
clear()
|
||||
screen = Screen.new(50, 15)
|
||||
@@ -2232,7 +2234,7 @@ describe('extmark decorations', function()
|
||||
|
||||
eq({ { 1, 0, 8, { end_col = 13, end_right_gravity = false, end_row = 0,
|
||||
hl_eol = false, hl_group = "NonText", undo_restore = false,
|
||||
ns_id = 1, priority = 4096, right_gravity = true } } },
|
||||
ns_id = ns, priority = 4096, right_gravity = true } } },
|
||||
api.nvim_buf_get_extmarks(0, ns, {0,0}, {0, -1}, {details=true}))
|
||||
end)
|
||||
|
||||
@@ -2933,7 +2935,8 @@ describe('extmark decorations', function()
|
||||
end)
|
||||
|
||||
describe('decorations: inline virtual text', function()
|
||||
local screen, ns
|
||||
local screen ---@type test.functional.ui.screen
|
||||
local ns ---@type integer
|
||||
before_each( function()
|
||||
clear()
|
||||
screen = Screen.new(50, 3)
|
||||
@@ -4675,7 +4678,9 @@ describe('decorations: inline virtual text', function()
|
||||
end)
|
||||
|
||||
describe('decorations: virtual lines', function()
|
||||
local screen, ns
|
||||
local screen ---@type test.functional.ui.screen
|
||||
local ns ---@type integer
|
||||
|
||||
before_each(function()
|
||||
clear()
|
||||
screen = Screen.new(50, 12)
|
||||
@@ -5732,7 +5737,9 @@ if (h->n_buckets < new_n_buckets) { // expand
|
||||
end)
|
||||
|
||||
describe('decorations: signs', function()
|
||||
local screen, ns
|
||||
local screen ---@type test.functional.ui.screen
|
||||
local ns ---@type integer
|
||||
|
||||
before_each(function()
|
||||
clear()
|
||||
screen = Screen.new(50, 10)
|
||||
@@ -6342,7 +6349,7 @@ l5
|
||||
end)
|
||||
|
||||
describe('decorations: virt_text', function()
|
||||
local screen
|
||||
local screen ---@type test.functional.ui.screen
|
||||
|
||||
before_each(function()
|
||||
clear()
|
||||
@@ -6416,7 +6423,10 @@ describe('decorations: virt_text', function()
|
||||
end)
|
||||
|
||||
describe('decorations: window scoped', function()
|
||||
local screen, ns, win_other
|
||||
local screen ---@type test.functional.ui.screen
|
||||
local ns ---@type integer
|
||||
local win_other ---@type integer
|
||||
|
||||
local url = 'https://example.com'
|
||||
before_each(function()
|
||||
clear()
|
||||
|
||||
Reference in New Issue
Block a user