Skip to content

Commit 3b12a89

Browse files
committed
Add go to diagnostic keybind
1 parent 8458c51 commit 3b12a89

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

init.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -601,6 +601,9 @@ require('lazy').setup({
601601
-- the definition of its *type*, not where it was *defined*.
602602
map('grt', require('telescope.builtin').lsp_type_definitions, '[G]oto [T]ype Definition')
603603

604+
--- Float the dianostic of the current line
605+
map('gd', vim.diagnostic.open_float, '[G]oto [D]iagnostic')
606+
604607
-- This function resolves a difference between neovim nightly (version 0.11) and stable (version 0.10)
605608
---@param client vim.lsp.Client
606609
---@param method vim.lsp.protocol.Method

0 commit comments

Comments
 (0)