Merge a7e213e4f4810320205d12f1c0bff1033bd1aba9 into 2abcb39fae23eb08acf347ef8011365da9f311f9

This commit is contained in:
Marc-Anthony 2025-03-20 18:16:47 -04:00 committed by GitHub
commit 4ed51a95a8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -169,8 +169,16 @@ vim.opt.confirm = true
vim.keymap.set('n', '<Esc>', '<cmd>nohlsearch<CR>') vim.keymap.set('n', '<Esc>', '<cmd>nohlsearch<CR>')
-- Diagnostic keymaps -- Diagnostic keymaps
-- See `:help setloclist`
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' })
-- Show diagnostic under cursor in floating window.
-- Alternative to virtual text when it overflow over the buffer
-- See `:help open_float`
vim.keymap.set('n', '<leader>xl', function()
vim.diagnostic.open_float { scope = 'line' }
end, { desc = 'Show [L]ine Diagnostics' })
-- 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
-- for people to discover. Otherwise, you normally need to press <C-\><C-n>, which -- for people to discover. Otherwise, you normally need to press <C-\><C-n>, which
-- is not what someone will guess without a bit more experience. -- is not what someone will guess without a bit more experience.