Use [d & ]d for moving around diagnostics in normal mode
This commit is contained in:
		
							parent
							
								
									a283ab973a
								
							
						
					
					
						commit
						c0ab67d3a4
					
				@ -106,8 +106,8 @@ return {
 | 
			
		||||
 | 
			
		||||
    -- Diagnostic mappings
 | 
			
		||||
    -- TODO: trouble.nvim mappings instead? https://youtu.be/MuUrCcvE-Yw?t=631
 | 
			
		||||
    vim.keymap.set('n', '<C-n>', vim.diagnostic.goto_next, { remap = false })
 | 
			
		||||
    vim.keymap.set('n', '<C-p>', vim.diagnostic.goto_prev, { remap = false })
 | 
			
		||||
    vim.keymap.set('n', ']d', vim.diagnostic.goto_next, { remap = false })
 | 
			
		||||
    vim.keymap.set('n', '[d', vim.diagnostic.goto_prev, { remap = false })
 | 
			
		||||
    vim.keymap.set('n', '<leader>sd', vim.diagnostic.open_float, { remap = false })
 | 
			
		||||
 | 
			
		||||
    -- LSP mappings created when attached to a buffer
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user