From b9931d5c01c323a8c5dd619a6bb9aebb3aa88b56 Mon Sep 17 00:00:00 2001 From: ray-x Date: Thu, 27 Apr 2023 20:24:19 +1000 Subject: [PATCH] type definition preview and readme updates --- README.md | 1 + lua/navigator/definition.lua | 1 + 2 files changed, 2 insertions(+) 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