show source in diagnostic errors
This commit is contained in:
parent
79df86ff35
commit
f0ecb97348
4
init.lua
4
init.lua
|
@ -168,7 +168,9 @@ end, { desc = 'Go to previous [D]iagnostic message' })
|
||||||
vim.keymap.set('n', ']d', function()
|
vim.keymap.set('n', ']d', function()
|
||||||
vim.diagnostic.goto_next { float = { source = true } }
|
vim.diagnostic.goto_next { float = { source = true } }
|
||||||
end, { desc = 'Go to next [D]iagnostic message' })
|
end, { desc = 'Go to next [D]iagnostic message' })
|
||||||
vim.keymap.set('n', '<leader>e', vim.diagnostic.open_float, { desc = 'Show diagnostic [E]rror messages' })
|
vim.keymap.set('n', '<leader>e', function()
|
||||||
|
vim.diagnostic.open_float { source = true }
|
||||||
|
end, { desc = 'Show diagnostic [E]rror messages' })
|
||||||
vim.keymap.set('n', '<leader>q', vim.diagnostic.setloclist, { desc = 'Open diagnostic [Q]uickfix list' })
|
vim.keymap.set('n', '<leader>q', vim.diagnostic.setloclist, { desc = 'Open diagnostic [Q]uickfix list' })
|
||||||
|
|
||||||
-- Exit terminal mode in the builtin terminal with a shortcut that is a bit easier
|
-- Exit terminal mode in the builtin terminal with a shortcut that is a bit easier
|
||||||
|
|
Loading…
Reference in New Issue