Skip to content

Commit 02db89c

Browse files
committed
feat(telescope): set lsp_reference fname width
1 parent 6b2ac1e commit 02db89c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

init.lua

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,11 @@ require('lazy').setup({
572572
map('gd', require('telescope.builtin').lsp_definitions, '[G]oto [D]efinition')
573573

574574
-- Find references for the word under your cursor.
575-
map('gr', require('telescope.builtin').lsp_references, '[G]oto [R]eferences')
575+
map('gr', function()
576+
require('telescope.builtin').lsp_references {
577+
fname_width = 0.5,
578+
}
579+
end, '[G]oto [R]eferences')
576580

577581
-- Jump to the implementation of the word under your cursor.
578582
-- Useful when your language has ways of declaring types without an actual implementation.

0 commit comments

Comments
 (0)