diff --git a/README.md b/README.md index be446d9..c28c8e4 100644 --- a/README.md +++ b/README.md @@ -473,6 +473,7 @@ In `playground` folder, there is a `init.lua` and source code for you to play wi | n | g0 | document symbol | | n | \ | go to definition (if multiple show listview) | | n | gp | definition preview (show Preview) | +| n | gP | type definition preview (show Preview) | | n | \ | definition | | n | g\ | implementation | | n | \gt | treesitter document symbol | diff --git a/lua/navigator/definition.lua b/lua/navigator/definition.lua index 6b1ba60..3272a35 100644 --- a/lua/navigator/definition.lua +++ b/lua/navigator/definition.lua @@ -190,6 +190,7 @@ local def = function() -- if client.resolved_capabilities.goto_definition then if client.server_capabilities.definitionProvider then client.request('textDocument/definition', ref_params, definition_hdlr, _bufnr) + return end end) end