diff --git a/runtime/lua/vim/lsp/util.lua b/runtime/lua/vim/lsp/util.lua index 4bbd95e0d4..a0ac87afec 100644 --- a/runtime/lua/vim/lsp/util.lua +++ b/runtime/lua/vim/lsp/util.lua @@ -1769,7 +1769,7 @@ function M.open_floating_preview(contents, syntax, opts) if do_stylize then vim.wo[floating_winnr].conceallevel = 2 - vim.wo[floating_winnr].concealcursor = 'n' + vim.wo[floating_winnr].concealcursor = '' vim.bo[floating_bufnr].filetype = 'markdown' vim.treesitter.start(floating_bufnr) if not opts.height then diff --git a/test/functional/plugin/lsp/utils_spec.lua b/test/functional/plugin/lsp/utils_spec.lua index 6161529f5e..eb76470b6d 100644 --- a/test/functional/plugin/lsp/utils_spec.lua +++ b/test/functional/plugin/lsp/utils_spec.lua @@ -367,7 +367,7 @@ describe('vim.lsp.util', function() screen:expect([[ | ┌─────────┐{1: }| - │{100:^local}{101: }{102:foo}│{1: }| + │{101:^```}{4: }│{1: }| └─────────┘{1: }| {1:~ }|*9 | @@ -401,8 +401,8 @@ describe('vim.lsp.util', function() screen:expect([[ | ┌─────────┐{1: }| - │{4:foo }│{1: }| - │{100:^local}{101: }{102:bar}│{1: }| + │{100:local}{101: }{102:bar}│{1: }| + │{101:^```}{4: }│{1: }| └─────────┘{1: }| {1:~ }|*8 |