diff options
| author | Tom Praschan <13141438+tom-anders@users.noreply.github.com> | 2021-05-08 13:43:38 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-08 13:43:38 +0200 |
| commit | 1408e3bbb7b1cdb048ddaebe66a04926c6d4bf74 (patch) | |
| tree | 463f3366e4e1a82b5120928ae9ae7522e6938fcd /lua/telescope/make_entry.lua | |
| parent | 144c761e035f37943aef7e83d59482690c26f687 (diff) | |
feat: add option to configure width of items in gen_from_lsp_symbols() (#812)
Diffstat (limited to 'lua/telescope/make_entry.lua')
| -rw-r--r-- | lua/telescope/make_entry.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lua/telescope/make_entry.lua b/lua/telescope/make_entry.lua index 80e9daa..01d0062 100644 --- a/lua/telescope/make_entry.lua +++ b/lua/telescope/make_entry.lua @@ -339,9 +339,9 @@ function make_entry.gen_from_lsp_symbols(opts) local bufnr = opts.bufnr or vim.api.nvim_get_current_buf() local display_items = { - { width = 25 }, -- symbol - { width = 8 }, -- symbol type - { remaining = true }, -- filename{:optional_lnum+col} OR content preview + { width = opts.symbol_width or 25 }, -- symbol + { width = opts.symbol_type_width or 8 }, -- symbol type + { remaining = true }, -- filename{:optional_lnum+col} OR content preview } if opts.ignore_filename and opts.show_line then |
