@@ -566,6 +566,8 @@ require('lazy').setup({
566566 vim .keymap .set (mode , keys , func , { buffer = event .buf , desc = ' LSP: ' .. desc })
567567 end
568568
569+ local default_fname_width = 0.5
570+
569571 -- Jump to the definition of the word under your cursor.
570572 -- This is where a variable was first declared, or where a function is defined, etc.
571573 -- To jump back, press <C-t>.
@@ -574,13 +576,17 @@ require('lazy').setup({
574576 -- Find references for the word under your cursor.
575577 map (' gr' , function ()
576578 require (' telescope.builtin' ).lsp_references {
577- fname_width = 0.5 ,
579+ fname_width = default_fname_width ,
578580 }
579581 end , ' [G]oto [R]eferences' )
580582
581583 -- Jump to the implementation of the word under your cursor.
582584 -- Useful when your language has ways of declaring types without an actual implementation.
583- map (' gI' , require (' telescope.builtin' ).lsp_implementations , ' [G]oto [I]mplementation' )
585+ map (' gI' , function ()
586+ require (' telescope.builtin' ).lsp_implementations {
587+ fname_width = default_fname_width ,
588+ }
589+ end , ' [G]oto [I]mplementation' )
584590
585591 -- Jump to the type of the word under your cursor.
586592 -- Useful when you're not sure what type a variable is and you want to see
0 commit comments