mirror of
https://github.com/neovim/neovim.git
synced 2025-12-10 08:32:42 +00:00
fix(lsp): set concealcursor='' in LSP floating windows #36596
Problem: Users often jump and navigate through LSP windows to yank text. Concealed markdown can make navigation through hyperlinks and code blocks more difficult. Solution: Change 'concealcursor' from 'n' to '' to preserve clean display while improving navigation and selection of the LSP response. Closes #36537
This commit is contained in:
@@ -1769,7 +1769,7 @@ function M.open_floating_preview(contents, syntax, opts)
|
|||||||
|
|
||||||
if do_stylize then
|
if do_stylize then
|
||||||
vim.wo[floating_winnr].conceallevel = 2
|
vim.wo[floating_winnr].conceallevel = 2
|
||||||
vim.wo[floating_winnr].concealcursor = 'n'
|
vim.wo[floating_winnr].concealcursor = ''
|
||||||
vim.bo[floating_bufnr].filetype = 'markdown'
|
vim.bo[floating_bufnr].filetype = 'markdown'
|
||||||
vim.treesitter.start(floating_bufnr)
|
vim.treesitter.start(floating_bufnr)
|
||||||
if not opts.height then
|
if not opts.height then
|
||||||
|
|||||||
@@ -367,7 +367,7 @@ describe('vim.lsp.util', function()
|
|||||||
screen:expect([[
|
screen:expect([[
|
||||||
|
|
|
|
||||||
┌─────────┐{1: }|
|
┌─────────┐{1: }|
|
||||||
│{100:^local}{101: }{102:foo}│{1: }|
|
│{101:^```}{4: }│{1: }|
|
||||||
└─────────┘{1: }|
|
└─────────┘{1: }|
|
||||||
{1:~ }|*9
|
{1:~ }|*9
|
||||||
|
|
|
|
||||||
@@ -401,8 +401,8 @@ describe('vim.lsp.util', function()
|
|||||||
screen:expect([[
|
screen:expect([[
|
||||||
|
|
|
|
||||||
┌─────────┐{1: }|
|
┌─────────┐{1: }|
|
||||||
│{4:foo }│{1: }|
|
│{100:local}{101: }{102:bar}│{1: }|
|
||||||
│{100:^local}{101: }{102:bar}│{1: }|
|
│{101:^```}{4: }│{1: }|
|
||||||
└─────────┘{1: }|
|
└─────────┘{1: }|
|
||||||
{1:~ }|*8
|
{1:~ }|*8
|
||||||
|
|
|
|
||||||
|
|||||||
Reference in New Issue
Block a user