diff --git a/lua/409/plugins/lsp.lua b/lua/409/plugins/lsp.lua index 7ac90c6..0d8290d 100644 --- a/lua/409/plugins/lsp.lua +++ b/lua/409/plugins/lsp.lua @@ -42,7 +42,11 @@ return { }) end, { buffer = bufnr, remap = false, nowait = true }) 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) vim.keymap.set("n", "K", function() vim.lsp.buf.hover()