From d7cdfcbeb63af82a949a8cc0f9135631d2db5dc6 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Thu, 5 Aug 2021 04:33:13 +0800 Subject: feat: add option jump_type to lsp_definitions and lsp_implementations (#1077) --- lua/telescope/builtin/init.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lua/telescope/builtin/init.lua') diff --git a/lua/telescope/builtin/init.lua b/lua/telescope/builtin/init.lua index e4b34e2..b1153ee 100644 --- a/lua/telescope/builtin/init.lua +++ b/lua/telescope/builtin/init.lua @@ -316,10 +316,12 @@ builtin.lsp_references = require("telescope.builtin.lsp").references --- Goto the definition 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 go to definition if there is only one, values: "tab", "split", "vsplit", "never" builtin.lsp_definitions = require("telescope.builtin.lsp").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 go to implementation if there is only one, values: "tab", "split", "vsplit", "never" builtin.lsp_implementations = require("telescope.builtin.lsp").implementations --- Lists any LSP actions for the word under the cursor which can be triggered with `` -- cgit v1.2.3