File tree Expand file tree Collapse file tree 3 files changed +15
-20
lines changed Expand file tree Collapse file tree 3 files changed +15
-20
lines changed Original file line number Diff line number Diff line change @@ -72,18 +72,6 @@ function M.lsp(buf)
7272			:with_silent ()
7373			:with_buffer (buf )
7474			:with_desc (" lsp: Show outgoing calls" 
75- 		[" n|<leader>td" =  map_callback (function ()
76- 				_toggle_diagnostic ()
77- 			end )
78- 			:with_noremap ()
79- 			:with_silent ()
80- 			:with_desc (" edit: Toggle virtual text display of current buffer" 
81- 		[" n|<leader>th" =  map_callback (function ()
82- 				_toggle_inlayhint ()
83- 			end )
84- 			:with_noremap ()
85- 			:with_silent ()
86- 			:with_desc (" edit: Toggle inlay hints dispaly of current buffer" 
8775	}
8876	bind .nvim_load_mapping (map )
8977
Original file line number Diff line number Diff line change @@ -63,6 +63,20 @@ local mappings = {
6363			:with_desc (" file: chmod +x current file" 
6464		[" n|<C-p>" =  map_cmd (" <Nop>" with_noremap ():with_silent ():with_desc (" Disable native cmp" 
6565		[" n|<C-n>" =  map_cmd (" <Nop>" with_noremap ():with_silent ():with_desc (" Disable native cmp" 
66+ 
67+ 		--  Builtins: Lsp
68+ 		[" n|<leader>td" =  map_callback (function ()
69+ 				_toggle_diagnostic ()
70+ 			end )
71+ 			:with_noremap ()
72+ 			:with_silent ()
73+ 			:with_desc (" edit: Toggle virtual text display of current buffer" 
74+ 		[" n|<leader>th" =  map_callback (function ()
75+ 				_toggle_inlayhint ()
76+ 			end )
77+ 			:with_noremap ()
78+ 			:with_silent ()
79+ 			:with_desc (" edit: Toggle inlay hints dispaly of current buffer" 
6680	},
6781	plugins  =  {
6882		--  Plugin: persisted.nvim
Original file line number Diff line number Diff line change @@ -123,11 +123,6 @@ function M.gitsigns(buf)
123123		end )
124124			:with_buffer (buf )
125125			:with_desc (" git: Stage hunk" 
126- 		[" n|<leader>gu" =  bind .map_callback (function ()
127- 			actions .undo_stage_hunk ()
128- 		end )
129- 			:with_buffer (buf )
130- 			:with_desc (" git: Undo stage hunk" 
131126		[" n|<leader>gr" =  bind .map_callback (function ()
132127			actions .reset_hunk ()
133128		end )
@@ -154,9 +149,7 @@ function M.gitsigns(buf)
154149			:with_buffer (buf )
155150			:with_desc (" git: Blame line" 
156151		--  Text objects
157- 		[" ox|ih" =  bind .map_callback (function ()
158- 			actions .text_object ()
159- 		end ):with_buffer (buf ),
152+ 		[" ox|ih" =  bind .map_cu (" Gitsigns select_hunk" with_silent ():with_buffer (buf ),
160153	}
161154	bind .nvim_load_mapping (map )
162155end 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments