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

Commit

Permalink
fix(hover) use lsp_markdown as syntax setting
Browse files Browse the repository at this point in the history
  • Loading branch information
againxx committed Mar 6, 2022
1 parent f3cdb7b commit f2f7e29
Showing 1 changed file with 3 additions and 1 deletion.
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

0 comments on commit f2f7e29

Please sign in to comment.