type definition preview and readme updates

pull/282/head
ray-x 1 year ago
parent 431ab5b6e8
commit b9931d5c01

@ -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 | g0 | document symbol |
| n | \<C-]\> | go to definition (if multiple show listview) | | n | \<C-]\> | go to definition (if multiple show listview) |
| n | gp | definition preview (show Preview) | | n | gp | definition preview (show Preview) |
| n | gP | type definition preview (show Preview) |
| n | \<C-LeftMouse\> | definition | | n | \<C-LeftMouse\> | definition |
| n | g\<LeftMouse\> | implementation | | n | g\<LeftMouse\> | implementation |
| n | \<Leader>gt | treesitter document symbol | | n | \<Leader>gt | treesitter document symbol |

@ -190,6 +190,7 @@ local def = function()
-- if client.resolved_capabilities.goto_definition then -- if client.resolved_capabilities.goto_definition then
if client.server_capabilities.definitionProvider then if client.server_capabilities.definitionProvider then
client.request('textDocument/definition', ref_params, definition_hdlr, _bufnr) client.request('textDocument/definition', ref_params, definition_hdlr, _bufnr)
return
end end
end) end)
end end

Loading…
Cancel
Save