Closed crusj closed 2 years ago
currently hardcoded. https://github.com/nvim-telescope/telescope.nvim/blob/master/lua/telescope/make_entry.lua#L921
Good first issue could be an additional options that you can access from opts.
was unrelated so opened new issue: https://github.com/nvim-telescope/telescope.nvim/issues/1834
currently hardcoded. https://github.com/nvim-telescope/telescope.nvim/blob/master/lua/telescope/make_entry.lua#L921
Good first issue could be an additional options that you can access from opts.
IThanks, I adjusted it manually
I know this is old, but I've just created a quick custom function which will set my fname_width
based on my current tmux pane width, so I can always have fname_width
as a proportion of my current pane width.
Thought it could be useful to someone.
M.lsp_references = function()
-- get pane width from tmux and use half the width for the fname_width
local fname_width = math.floor(vim.fn.system("tmux display -p '#{pane_width}'") / 2)
-- Maybe running outside of tmux
if fname_width == 0 then
fname_width = 30
end
require('telescope.builtin').lsp_references({fname_width = fname_width })
end
we just recently merged into master a change to remove the fname_width
option from many pickers due to how clumsy having <file path> | <line text>
looked. This led to fname_width
never being great. Always cutting out the path or taking too much space and leaving a bunch of whitespace. Going forward, the file path and the text are shown as one concatenated string like so
we just recently merged into master a change to remove the
fname_width
option from many pickers due to how clumsy having<file path> | <line text>
looked. This led tofname_width
never being great. Always cutting out the path or taking too much space and leaving a bunch of whitespace. Going forward, the file path and the text are shown as one concatenated string like so2842
Hi @jamestrew that looks nice! And eliminates the whole problem. I'm looking forward to using that in the future :)
Cheers,
Description
I can not find the way by docs
Neovim version
Operating system and version
macos 12.0.1
checkhealth telescope
Steps to reproduce
:Telescope tags
Expected behavior
No response
Actual behavior
Minimal config