Skip to content
This repository has been archived by the owner on Aug 11, 2024. It is now read-only.

fix(hover) use lsp_markdown as syntax type #93

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion lua/lspsaga/window.lua
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,9 @@ function M.fancy_floating_markdown(contents, opts)
local cwin = vim.api.nvim_get_current_win()
vim.api.nvim_set_current_win(winid)

vim.cmd "ownsyntax markdown"
vim.cmd "ownsyntax lsp_markdown"
vim.api.nvim_win_set_option(winid, 'conceallevel', 2)
vim.api.nvim_win_set_option(winid, 'concealcursor', 'n')
local idx = 1
--@private
local function apply_syntax_to_region(ft, start, finish)
Expand Down