mirror of
https://github.com/nvim-lua/kickstart.nvim.git
synced 2026-05-14 08:23:48 +00:00
Compare commits
2 Commits
174b5fa2b1
...
cfdc17be3a
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cfdc17be3a | ||
|
|
a5d4d12c8c |
10
init.lua
10
init.lua
@ -192,7 +192,15 @@ do
|
||||
virtual_lines = false, -- Text shows up underneath the line, with virtual lines
|
||||
|
||||
-- Auto open the float, so you can easily read the errors when jumping with `[d` and `]d`
|
||||
jump = { float = true },
|
||||
jump = {
|
||||
on_jump = function(_, bufnr)
|
||||
vim.diagnostic.open_float {
|
||||
bufnr = bufnr,
|
||||
scope = 'cursor',
|
||||
focus = false,
|
||||
}
|
||||
end,
|
||||
},
|
||||
}
|
||||
|
||||
vim.keymap.set('n', '<leader>q', vim.diagnostic.setloclist, { desc = 'Open diagnostic [Q]uickfix list' })
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user