diff options
| author | Simon Hauser <simon.hauser@helsinki-systems.de> | 2022-06-30 14:29:46 +0200 |
|---|---|---|
| committer | Simon Hauser <simon.hauser@helsinki-systems.de> | 2022-06-30 14:29:57 +0200 |
| commit | 1ba967f84e8416de9a3423bd693ec77744df8bff (patch) | |
| tree | f3a0db20736d26a03e48622148a175d8cee29182 /lua/telescope/make_entry.lua | |
| parent | 4ef490defaca6343bd6e5c24f20ba8da50e66341 (diff) | |
fix: truncate for builtin.buffers
fix #2022
Diffstat (limited to 'lua/telescope/make_entry.lua')
| -rw-r--r-- | lua/telescope/make_entry.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lua/telescope/make_entry.lua b/lua/telescope/make_entry.lua index efeb750..8e9f84a 100644 --- a/lua/telescope/make_entry.lua +++ b/lua/telescope/make_entry.lua @@ -484,8 +484,9 @@ function make_entry.gen_from_buffer(opts) local cwd = vim.fn.expand(opts.cwd or vim.loop.cwd()) local make_display = function(entry) + -- bufnr_width + modes + icon + 3 spaces + : + lnum + opts.__prefix = opts.bufnr_width + 4 + icon_width + 3 + 1 + #tostring(entry.lnum) local display_bufname = utils.transform_path(opts, entry.filename) - local icon, hl_group = utils.get_devicons(entry.filename, disable_devicons) return displayer { |
