nvimdev / lspsaga.nvim

improve neovim lsp experience
MIT License
3.41k stars 287 forks source link

No separator between entry.source and entry.code in the msg_fmt function #1371

Closed LimbicSys closed 7 months ago

LimbicSys commented 7 months ago

Describe the bug

图片
local function msg_fmt(entry)
  return entry.message
    .. ' '
    .. entry.lnum + 1
    .. ':'
    .. entry.col + 1
    .. ':'
    .. entry.bufnr
    .. ' '
    .. (entry.source and entry.source or '')
    .. (entry.code and entry.code or '')
end

There should be a separator, e.g., a white space.

Steps to reproduce

Use Lspsaga show_line_diagnostics on error lines.

Expected behavior

图片

Message like this.

Neovim version (nvim -v)

0.9.4

lspsaga commit

4e2b91c0db5654d625c4b4068d3e206c8535783c

Terminal name/version

wezterm 20230712-072601-f4abf8fd