diff options
| author | Simon Hauser <Simon-Hauser@outlook.de> | 2022-04-09 13:17:57 +0200 |
|---|---|---|
| committer | Simon Hauser <Simon-Hauser@outlook.de> | 2022-04-09 13:17:57 +0200 |
| commit | 762d49f60749eac75979202194ad0ee177977a74 (patch) | |
| tree | d1ec9ea88e09dc81f16bc8125d3b424dda836d88 /lua/telescope/builtin/init.lua | |
| parent | 8af0d384d21104be3cb055494aab9a6f86d94067 (diff) | |
feat(lsp_references): include current line option
close: #1821
Diffstat (limited to 'lua/telescope/builtin/init.lua')
| -rw-r--r-- | lua/telescope/builtin/init.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lua/telescope/builtin/init.lua b/lua/telescope/builtin/init.lua index 95e293d..9c434dd 100644 --- a/lua/telescope/builtin/init.lua +++ b/lua/telescope/builtin/init.lua @@ -352,6 +352,8 @@ builtin.jumplist = require_on_exported_call("telescope.builtin.internal").jumpli --- Lists LSP references for word under the cursor, jumps to reference on `<cr>` ---@param opts table: options to pass to the picker +---@field include_declaration boolean: include symbol declaration in the lsp references (default: true) +---@field include_current_line boolean: include current line (default: false) builtin.lsp_references = require_on_exported_call("telescope.builtin.lsp").references --- Goto the definition of the word under the cursor, if there's only one, otherwise show all options in Telescope @@ -365,7 +367,6 @@ builtin.lsp_definitions = require_on_exported_call("telescope.builtin.lsp").defi ---@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" ---@field ignore_filename boolean: dont show filenames (default: true) ----@field include_declaration boolean: include symbol declaration in the lsp references (default: true) 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 |
