diff options
| author | Rodrigodd <51273772+Rodrigodd@users.noreply.github.com> | 2021-09-12 06:36:28 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-12 11:36:28 +0200 |
| commit | d022ccaf1137fda5b6c4f09e224fd187f54324ba (patch) | |
| tree | 3a08ef05a1d54838ef57d7a58b7a0d5e175b58ab /lua/telescope/builtin/init.lua | |
| parent | 9d847e79046abb2f365a584be30d66957f02a1c1 (diff) | |
feat: lsp type definitions (#1224)
Diffstat (limited to 'lua/telescope/builtin/init.lua')
| -rw-r--r-- | lua/telescope/builtin/init.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lua/telescope/builtin/init.lua b/lua/telescope/builtin/init.lua index e790700..0f55467 100644 --- a/lua/telescope/builtin/init.lua +++ b/lua/telescope/builtin/init.lua @@ -355,6 +355,12 @@ builtin.lsp_references = require_on_exported_call("telescope.builtin.lsp").refer ---@field jump_type string: how to goto definition if there is only one, values: "tab", "split", "vsplit", "never" builtin.lsp_definitions = require_on_exported_call("telescope.builtin.lsp").definitions +--- Goto the definition of the type of the word under the cursor, if there's only one, +--- otherwise show all options in Telescope +---@param opts table: options to pass to the picker +---@field jump_type string: how to goto definition if there is only one, values: "tab", "split", "vsplit", "never" +builtin.lsp_type_definitions = require("telescope.builtin.lsp").type_definitions + --- Goto the implementation of the word under the cursor if there's only one, otherwise show all options in Telescope ---@param opts table: options to pass to the picker ---@field jump_type string: how to goto implementation if there is only one, values: "tab", "split", "vsplit", "never" |
