aboutsummaryrefslogtreecommitdiff
path: root/test/functional/plugin
diff options
context:
space:
mode:
authorYi Ming <ofseed@foxmail.com>2026-02-20 19:33:20 +0800
committerYi Ming <ofseed@foxmail.com>2026-03-08 11:32:50 +0800
commit40dc2d02a85175339ce70611764b0bde7b1c19f4 (patch)
treecd50dcf909ab07f1ebf102ae27a5065f5dfebcd3 /test/functional/plugin
parent378435968f64b681cb9a16d8ebf966e5d472e3fc (diff)
downloadrneovim-40dc2d02a85175339ce70611764b0bde7b1c19f4.tar.gz
rneovim-40dc2d02a85175339ce70611764b0bde7b1c19f4.tar.bz2
rneovim-40dc2d02a85175339ce70611764b0bde7b1c19f4.zip
fix(lsp): ensure the codelens on the first line is visible
Diffstat (limited to 'test/functional/plugin')
-rw-r--r--test/functional/plugin/lsp/codelens_spec.lua11
1 files changed, 7 insertions, 4 deletions
diff --git a/test/functional/plugin/lsp/codelens_spec.lua b/test/functional/plugin/lsp/codelens_spec.lua
index e099aaf5d2..530ae6639c 100644
--- a/test/functional/plugin/lsp/codelens_spec.lua
+++ b/test/functional/plugin/lsp/codelens_spec.lua
@@ -34,6 +34,7 @@ describe('vim.lsp.codelens', function()
]])
local grid_with_lenses = dedent([[
+ {1: 1 implementation} |
struct S { |
a: i32, |
b: String, |
@@ -52,7 +53,6 @@ describe('vim.lsp.codelens', function()
println!("S.a: {}, S.b: {}", s.a, s.b); |
} |
^ |
- {1:~ }|
|
]])
@@ -248,6 +248,7 @@ describe('vim.lsp.codelens', function()
feed('ggdd')
screen:expect([[
+ {1: 1 implementation} |
^a: i32, |
b: String, |
} |
@@ -265,7 +266,7 @@ describe('vim.lsp.codelens', function()
println!("S.a: {}, S.b: {}", s.a, s.b); |
} |
|
- {1:~ }|*2
+ {1:~ }|
|
]])
exec_lua(function()
@@ -276,6 +277,7 @@ describe('vim.lsp.codelens', function()
)
end)
screen:expect([[
+ {1: 1 implementation} |
^a: i32, |
b: String, |
} |
@@ -293,7 +295,7 @@ describe('vim.lsp.codelens', function()
println!("S.a: {}, S.b: {}", s.a, s.b); |
} |
|
- {1:~ }|*2
+ {1:~ }|
|
]])
end)
@@ -378,6 +380,7 @@ describe('vim.lsp.codelens', function()
it('clears extmarks beyond the bottom of the buffer', function()
feed('12G4dd')
screen:expect([[
+ {1: 1 implementation} |
struct S { |
a: i32, |
b: String, |
@@ -390,7 +393,7 @@ describe('vim.lsp.codelens', function()
} |
|
^ |
- {1:~ }|*7
+ {1:~ }|*6
4 fewer lines |
]])
end)