diff --git a/lua/lspsaga/hover.lua b/lua/lspsaga/hover.lua index 117bfa85d..d78e023d3 100644 --- a/lua/lspsaga/hover.lua +++ b/lua/lspsaga/hover.lua @@ -244,7 +244,11 @@ function hover:do_request(args) if type(result.contents) == 'string' then -- MarkedString value = result.contents elseif result.contents.language then -- MarkedString - value = result.contents.value + if result.contents.language == 'css' then -- tailwindcss + value = '```css\n' .. result.contents.value .. '\n```' + else + value = result.contents.value + end elseif vim.tbl_islist(result.contents) then -- MarkedString[] if vim.tbl_isempty(result.contents) and ignore_error(args) then vim.notify('No information available') diff --git a/lua/lspsaga/symbol/winbar.lua b/lua/lspsaga/symbol/winbar.lua index 9e464d2bc..ced986c92 100644 --- a/lua/lspsaga/symbol/winbar.lua +++ b/lua/lspsaga/symbol/winbar.lua @@ -29,7 +29,14 @@ local function path_in_bar(buf) for item in util.path_itera(buf) do item = #items == 0 and '%#' .. (hl or 'SagaFileIcon') .. '#' .. (icon and icon .. ' ' or '') .. '%*' .. bar.prefix .. 'FileName#' .. item .. '%*' - or bar.prefix .. 'Folder#' .. (folder and folder or '') .. '%*' .. bar.prefix .. 'FolderName#' .. item .. '%*' + or bar.prefix + .. 'Folder#' + .. (folder and folder or '') + .. '%*' + .. bar.prefix + .. 'FolderName#' + .. item + .. '%*' items[#items + 1] = item if #items > config.folder_level then @@ -104,14 +111,8 @@ local function insert_elements(buf, node, elements) local node_context = string.format('%s%s#%s%s', bar.prefix, type, icon, node.name) elements[#elements + 1] = node_context else - elements[#elements + 1] = string.format( - '%s%s#%s%sWord#%s', - bar.prefix, - type, - icon, - bar.prefix, - node.name - ) + elements[#elements + 1] = + string.format('%s%s#%s%sWord#%s', bar.prefix, type, icon, bar.prefix, node.name) end end