Add sibling-swap plugin
This commit is contained in:
		
							parent
							
								
									2cf51b55ea
								
							
						
					
					
						commit
						b958ac678d
					
				
					 3 changed files with 37 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -32,6 +32,25 @@ return {
 | 
			
		|||
    ["<leader>b"] = { name = "Buffers" },
 | 
			
		||||
    -- quick save
 | 
			
		||||
    -- ["<C-s>"] = { ":w!<cr>", desc = "Save File" },  -- change description but the same command
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    -- Keep cursor centered
 | 
			
		||||
    ["<C-d>"] = { "<C-d>zz" },
 | 
			
		||||
    ["<C-u>"] = { "<C-u>zz" },
 | 
			
		||||
 | 
			
		||||
    -- Sibling swap
 | 
			
		||||
    ["g>"] = {
 | 
			
		||||
      function()
 | 
			
		||||
        require("sibling-swap").swap_with_right()
 | 
			
		||||
      end,
 | 
			
		||||
      desc = "Swap with right",
 | 
			
		||||
    },
 | 
			
		||||
    ["g<"] = {
 | 
			
		||||
      function()
 | 
			
		||||
        require("sibling-swap").swap_with_left()
 | 
			
		||||
      end,
 | 
			
		||||
      desc = "Swap with left",
 | 
			
		||||
    },
 | 
			
		||||
  },
 | 
			
		||||
  t = {
 | 
			
		||||
    -- setting a mapping to false will disable it
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										10
									
								
								.config/astronvim/lua/user/plugins/nvim-notify.lua
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								.config/astronvim/lua/user/plugins/nvim-notify.lua
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,10 @@
 | 
			
		|||
return {
 | 
			
		||||
  "rcarriga/nvim-notify",
 | 
			
		||||
  config = function(plugin, opts)
 | 
			
		||||
    require("plugins.configs.notify")(plugin, opts)
 | 
			
		||||
    local notify = require "notify"
 | 
			
		||||
    notify.setup({
 | 
			
		||||
      background_colour = "#000000"
 | 
			
		||||
    })
 | 
			
		||||
  end,
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			@ -21,5 +21,13 @@ return {
 | 
			
		|||
    "wakatime/vim-wakatime",
 | 
			
		||||
    enabled = wakatime_enabled,
 | 
			
		||||
    lazy = false
 | 
			
		||||
  },
 | 
			
		||||
 | 
			
		||||
  {
 | 
			
		||||
    "Wansmer/sibling-swap.nvim",
 | 
			
		||||
    lazy = false,
 | 
			
		||||
    opts = {
 | 
			
		||||
      use_default_keymaps = false,
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue