feat(keybinds): gi jumps to first instead of opening quickfix

This commit is contained in:
2025-02-19 03:09:26 +01:00
parent 1c30f6c3a7
commit e25dc486a3

View File

@@ -42,7 +42,11 @@ return {
}) })
end, { buffer = bufnr, remap = false, nowait = true }) end, { buffer = bufnr, remap = false, nowait = true })
vim.keymap.set("n", "gi", function() vim.keymap.set("n", "gi", function()
vim.lsp.buf.implementation() vim.lsp.buf.implementation({
on_list = function(list)
vim.lsp.util.jump_to_location(list.items[1].user_data, "utf-8", true)
end,
})
end, lsp_opts) end, lsp_opts)
vim.keymap.set("n", "K", function() vim.keymap.set("n", "K", function()
vim.lsp.buf.hover() vim.lsp.buf.hover()