mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
fix(lsp): respect global syntax setting in open float preview (#15225)
This commit is contained in:
parent
24352cba01
commit
c6d6b8c7eb
@ -1477,7 +1477,7 @@ function M.open_floating_preview(contents, syntax, opts)
|
||||
})
|
||||
opts = opts or {}
|
||||
opts.wrap = opts.wrap ~= false -- wrapping by default
|
||||
opts.stylize_markdown = opts.stylize_markdown ~= false
|
||||
opts.stylize_markdown = opts.stylize_markdown ~= false and vim.g.syntax_on ~= nil
|
||||
opts.focus = opts.focus ~= false
|
||||
opts.close_events = opts.close_events or { 'CursorMoved', 'CursorMovedI', 'InsertCharPre' }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user