-- A small Neovim plugin for previewing native LSP's goto definition, type definition, -- implementation, declaration and references calls in floating windows. -- https://github.com/rmagatti/goto-preview return { 'rmagatti/goto-preview', event = 'VeryLazy', config = function() require('goto-preview').setup() end, keys = { { 'pd', 'lua require("goto-preview").goto_preview_definition()', desc = 'Definition' }, { 'pt', 'lua require("goto-preview").goto_preview_type()', desc = 'Type' }, { 'pi', 'lua require("goto-preview").goto_preview_implementation()', desc = 'Implementation' }, { 'pD', 'lua require("goto-preview").goto_preview_declaration()', desc = 'Declaration' }, { 'pr', 'lua require("goto-preview").goto_preview_references()', desc = 'References' }, { 'pq', 'lua require("goto-preview").close_all_win()', desc = 'Close all' }, }, }