aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/decorations_spec.lua
diff options
context:
space:
mode:
authorGregory Anders <8965202+gpanders@users.noreply.github.com>2024-05-01 08:08:22 -0500
committerGitHub <noreply@github.com>2024-05-01 08:08:22 -0500
commit0b8a72b73934d33a05e20c255298e88cd921df32 (patch)
treece5908b4112121be8c95b7ede87acf9238cc8e72 /test/functional/ui/decorations_spec.lua
parentb5583acc482b125399e9fa6c2454a6db6b1ae3e4 (diff)
downloadrneovim-0b8a72b73934d33a05e20c255298e88cd921df32.tar.gz
rneovim-0b8a72b73934d33a05e20c255298e88cd921df32.tar.bz2
rneovim-0b8a72b73934d33a05e20c255298e88cd921df32.zip
revert: "feat(extmarks): subpriorities (relative to declaration order) (#27131)" (#28585)
This reverts commit 15e77a56b711102fdc123e15b3f37d49bc0b1df1. Subpriorities were added in https://github.com/neovim/neovim/pull/27131 as a mechanism for enforcing query order when using iter_matches in the Tree-sitter highlighter. However, iter_matches proved to have too many complications to use in the highlighter so we eventually reverted back to using iter_captures (https://github.com/neovim/neovim/pull/27901). Thus, subpriorities are no longer needed and can be removed.
Diffstat (limited to 'test/functional/ui/decorations_spec.lua')
-rw-r--r--test/functional/ui/decorations_spec.lua41
1 files changed, 0 insertions, 41 deletions
diff --git a/test/functional/ui/decorations_spec.lua b/test/functional/ui/decorations_spec.lua
index ac879c33fc..244e37d9d9 100644
--- a/test/functional/ui/decorations_spec.lua
+++ b/test/functional/ui/decorations_spec.lua
@@ -727,47 +727,6 @@ describe('decorations providers', function()
n.assert_alive()
end)
- it('supports subpriorities (order of definitions in a query file #27131)', function()
- insert(mulholland)
- setup_provider [[
- local test_ns = api.nvim_create_namespace('mulholland')
- function on_do(event, ...)
- if event == "line" then
- local win, buf, line = ...
- api.nvim_buf_set_extmark(buf, test_ns, line, 0, {
- end_row = line + 1,
- hl_eol = true,
- hl_group = 'Comment',
- ephemeral = true,
- priority = 100,
- _subpriority = 20,
- })
-
- -- This extmark is set last but has a lower subpriority, so the first extmark "wins"
- api.nvim_buf_set_extmark(buf, test_ns, line, 0, {
- end_row = line + 1,
- hl_eol = true,
- hl_group = 'String',
- ephemeral = true,
- priority = 100,
- _subpriority = 10,
- })
- end
- end
- ]]
-
- screen:expect{grid=[[
- {4:// just to see if there was an accident }|
- {4:// on Mulholland Drive }|
- {4:try_start(); }|
- {4:bufref_T save_buf; }|
- {4:switch_buffer(&save_buf, buf); }|
- {4:posp = getmark(mark, false); }|
- {4:restore_buffer(&save_buf);^ }|
- |
- ]]}
- end)
-
it('is not invoked repeatedly in Visual mode with vim.schedule() #20235', function()
exec_lua([[_G.cnt = 0]])
setup_provider([[