File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change 1+ local  vim_path  =  require (" core.global" vim_path 
12local  bind  =  require (" keymap.bind" 
23local  map_cr  =  bind .map_cr 
34local  map_cu  =  bind .map_cu 
45local  map_cmd  =  bind .map_cmd 
56local  map_callback  =  bind .map_callback 
6- local  vim_path  =  require (" core.global" vim_path 
77local  et  =  bind .escape_termcode 
88require (" keymap.helpers" 
99
@@ -146,15 +146,8 @@ local mappings = {
146146			:with_noremap ()
147147			:with_silent ()
148148			:with_desc (" tool: Find patterns" 
149- 		-- 	["v|<leader>fs"] = map_cu("Telescope grep_string")
150- 		-- 	:with_noremap()
151- 		-- 	:with_silent()
152- 		-- 	:with_desc("tool: Find word under cursor"),
153149		[" v|<leader>fs" =  map_callback (function ()
154- 				local  opts  =  {}
155- 				if  vim .fn .getcwd () ==  vim_path  then 
156- 					opts [" additional_args" =  { " --no-ignore"  
157- 				end 
150+ 				local  opts  =  vim .fn .getcwd () ==  vim_path  and  { additional_args  =  { " --no-ignore"  or  {}
158151				require (" telescope-live-grep-args.shortcuts" grep_visual_selection (opts )
159152			end )
160153			:with_noremap ()
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments