caio.co/de/config.nvim

Use nvim 0.10+ default diagnostic bindings

]d is bound by default. I barely use ]ed since I added telescope

I don't like the default open float binding but it's easy enough
to memorize
Id
ba0a275bf5bd08cbad0d3e665a51dca8fdda5a1d
Author
Caio
Commit time
2024-08-09T07:58:31+02:00

Modified lua/mappings.lua

@@ -36,11 +36,3
map('n', "<leader><space>", ":nohlsearch<CR>", opts)

map('n', '0', ":lua require('custom').caret_or_zero()<CR>", opts)
-
--- Next/Previous diagnostic
-map('n', ']d', '<cmd>lua vim.diagnostic.goto_next()<CR>', opts)
-map('n', '[d', '<cmd>lua vim.diagnostic.goto_prev()<CR>', opts)
-map('n', ']ed', '<cmd>lua vim.diagnostic.goto_next({ severity = "Error"})<CR>', opts)
-map('n', '[ed', '<cmd>lua vim.diagnostic.goto_prev({ severity = "Error"})<CR>', opts)
--- Show a pop-up with the line diagnostic details
-map('n', '<leader>k', '<cmd>lua vim.diagnostic.open_float(nil, { focusable = false })<CR>', opts)