diff options
author | notomo <notomo.motono@gmail.com> | 2022-01-24 09:52:13 +0900 |
---|---|---|
committer | notomo <notomo.motono@gmail.com> | 2022-01-24 09:52:13 +0900 |
commit | 3d9ae9d2dad88a4e2c2263dc7e256657842244c0 (patch) | |
tree | c6374905f58e7f3a089736e877eaf7a236a95ee8 /test/functional/api | |
parent | 7e2ce35e3b7f8be5e8d01b44c2fdba0b4e23fbd4 (diff) | |
download | rneovim-3d9ae9d2dad88a4e2c2263dc7e256657842244c0.tar.gz rneovim-3d9ae9d2dad88a4e2c2263dc7e256657842244c0.tar.bz2 rneovim-3d9ae9d2dad88a4e2c2263dc7e256657842244c0.zip |
feat(api): expose extmark right_gravity and end_right_gravity
Diffstat (limited to 'test/functional/api')
-rw-r--r-- | test/functional/api/extmark_spec.lua | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/test/functional/api/extmark_spec.lua b/test/functional/api/extmark_spec.lua index 3f79515949..3f96efd4ef 100644 --- a/test/functional/api/extmark_spec.lua +++ b/test/functional/api/extmark_spec.lua @@ -1446,13 +1446,20 @@ describe('API/extmarks', function() end_col = 0, end_line = 1 }) - eq({ {1, 0, 0, { end_col = 0, end_row = 1 }} }, get_extmarks(ns, 0, -1, {details=true})) + eq({ {1, 0, 0, { + end_col = 0, + end_row = 1, + right_gravity = true, + end_right_gravity = false, + }} }, get_extmarks(ns, 0, -1, {details=true})) end) it('can get details', function() set_extmark(ns, marks[1], 0, 0, { end_col = 0, end_row = 1, + right_gravity = false, + end_right_gravity = true, priority = 0, hl_eol = true, hl_mode = "blend", @@ -1472,6 +1479,8 @@ describe('API/extmarks', function() eq({0, 0, { end_col = 0, end_row = 1, + right_gravity = false, + end_right_gravity = true, priority = 0, hl_eol = true, hl_mode = "blend", @@ -1484,6 +1493,7 @@ describe('API/extmarks', function() virt_lines_leftcol = true, } }, get_extmark_by_id(ns, marks[1], { details = true })) eq({0, 0, { + right_gravity = true, priority = 0, virt_text = { { "text", "Statement" } }, virt_text_hide = false, |