update mappings to be compatible with astrovim 3
This commit is contained in:
		
				
					committed by
					
						
						Micah Halter
					
				
			
			
				
	
			
			
			
						parent
						
							821aa73190
						
					
				
				
					commit
					89b4076fdc
				
			
							
								
								
									
										11
									
								
								mappings.lua
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								mappings.lua
									
									
									
									
									
								
							@@ -8,10 +8,13 @@ return {
 | 
				
			|||||||
  n = {
 | 
					  n = {
 | 
				
			||||||
    -- second key is the lefthand side of the map
 | 
					    -- second key is the lefthand side of the map
 | 
				
			||||||
    -- mappings seen under group name "Buffer"
 | 
					    -- mappings seen under group name "Buffer"
 | 
				
			||||||
    ["<leader>bb"] = { "<cmd>tabnew<cr>", desc = "New tab" },
 | 
					    ["<leader>bn"] = { "<cmd>tabnew<cr>", desc = "New tab" },
 | 
				
			||||||
    ["<leader>bc"] = { "<cmd>BufferLinePickClose<cr>", desc = "Pick to close" },
 | 
					    ["<leader>bD"] = {
 | 
				
			||||||
    ["<leader>bj"] = { "<cmd>BufferLinePick<cr>", desc = "Pick to jump" },
 | 
					      function()
 | 
				
			||||||
    ["<leader>bt"] = { "<cmd>BufferLineSortByTabs<cr>", desc = "Sort by tabs" },
 | 
					        require("astronvim.utils.status").heirline.buffer_picker(function(bufnr) require("astronvim.utils.buffer").close(bufnr) end)
 | 
				
			||||||
 | 
					      end,
 | 
				
			||||||
 | 
					      desc = "Pick to close",
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
    -- tables with the `name` key will be registered with which-key if it's installed
 | 
					    -- tables with the `name` key will be registered with which-key if it's installed
 | 
				
			||||||
    -- this is useful for naming menus
 | 
					    -- this is useful for naming menus
 | 
				
			||||||
    ["<leader>b"] = { name = "Buffers" },
 | 
					    ["<leader>b"] = { name = "Buffers" },
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user