nvimdev / lspsaga.nvim

improve neovim lsp experience
MIT License
3.37k stars 285 forks source link

Diagnostic float covers problematic code #1462

Closed mikehaertl closed 1 month ago

mikehaertl commented 1 month ago

Describe the bug

When using :Lspsaga diagnostic_jump_next the menu opens over the error so that the problematic code is no longer visible.

image

image

Steps to reproduce

  1. Open a file that contains LSP errors
  2. Call :Lspsaga diagnostic_jump_next
require('lspsaga').setup({
  request_timeout = 5000,
  diagnostic = {
    show_layout = 'normal',
    show_normal_height = 0.5,
    extend_relatedInformation = true,
    keys = {
      exec_action = 'o',
      quit = 'q',
      toggle_or_jump = '<cr>',
      quit_in_show = {'q', '<esc>'},
    },
  },

Expected behavior

The diagnostic float should not cover up the code.

Neovim version (nvim -v)

0.10.0

lspsaga commit

e3277b0

Terminal name/version

Gnome Terminal 3.44.0

glepnir commented 1 month ago

update the auto_preview is false in default now.