Add snacks
This commit is contained in:
		
							parent
							
								
									a6f2588d65
								
							
						
					
					
						commit
						1c53a038f4
					
				
							
								
								
									
										18
									
								
								init.lua
								
								
								
								
							
							
						
						
									
										18
									
								
								init.lua
								
								
								
								
							|  | @ -136,8 +136,6 @@ vim.keymap.set('n', '<leader>c', '<cmd>bd<cr>') | ||||||
| vim.keymap.set('n', '<leader>h', '<cmd>bprev<cr>') | vim.keymap.set('n', '<leader>h', '<cmd>bprev<cr>') | ||||||
| vim.keymap.set('n', '<leader>l', '<cmd>bnext<cr>') | vim.keymap.set('n', '<leader>l', '<cmd>bnext<cr>') | ||||||
| vim.keymap.set('n', '<leader>sv', '<cmd>write<cr>', { desc = 'Sa[v]e File' }) | vim.keymap.set('n', '<leader>sv', '<cmd>write<cr>', { desc = 'Sa[v]e File' }) | ||||||
| -- delete all other buffers |  | ||||||
| vim.keymap.set('n', '<leader>C', '<cmd>%bd|e#|bd#<cr>') |  | ||||||
| 
 | 
 | ||||||
| -- Diagnostic keymaps | -- Diagnostic keymaps | ||||||
| vim.keymap.set('n', '[d', vim.diagnostic.goto_prev, { desc = 'Go to previous [D]iagnostic message' }) | vim.keymap.set('n', '[d', vim.diagnostic.goto_prev, { desc = 'Go to previous [D]iagnostic message' }) | ||||||
|  | @ -914,6 +912,22 @@ require('lazy').setup({ | ||||||
|     }, |     }, | ||||||
|   }, |   }, | ||||||
| 
 | 
 | ||||||
|  |   { | ||||||
|  |     'folke/snacks.nvim', | ||||||
|  |     priority = 1000, | ||||||
|  |     lazy = false, | ||||||
|  |     opts = {}, | ||||||
|  |     keys = { | ||||||
|  |       { | ||||||
|  |         '<leader>C', | ||||||
|  |         function() | ||||||
|  |           Snacks.bufdelete.other() | ||||||
|  |         end, | ||||||
|  |         desc = 'Close other buffers', | ||||||
|  |       }, | ||||||
|  |     }, | ||||||
|  |   }, | ||||||
|  | 
 | ||||||
|   -- The following two comments only work if you have downloaded the kickstart repo, not just copy pasted the |   -- The following two comments only work if you have downloaded the kickstart repo, not just copy pasted the | ||||||
|   -- init.lua. If you want these files, they are in the repository, so you can just download them and |   -- init.lua. If you want these files, they are in the repository, so you can just download them and | ||||||
|   -- put them in the right spots if you want. |   -- put them in the right spots if you want. | ||||||
|  |  | ||||||
|  | @ -19,6 +19,7 @@ | ||||||
|   "nvim-treesitter": { "branch": "master", "commit": "45386764cc9535200d2288cab929c5093d33660e" }, |   "nvim-treesitter": { "branch": "master", "commit": "45386764cc9535200d2288cab929c5093d33660e" }, | ||||||
|   "nvim-web-devicons": { "branch": "master", "commit": "56f17def81478e406e3a8ec4aa727558e79786f3" }, |   "nvim-web-devicons": { "branch": "master", "commit": "56f17def81478e406e3a8ec4aa727558e79786f3" }, | ||||||
|   "plenary.nvim": { "branch": "master", "commit": "2d9b06177a975543726ce5c73fca176cedbffe9d" }, |   "plenary.nvim": { "branch": "master", "commit": "2d9b06177a975543726ce5c73fca176cedbffe9d" }, | ||||||
|  |   "snacks.nvim": { "branch": "main", "commit": "3c1849a09b9618cbc49eed337f0a302394ef049b" }, | ||||||
|   "telescope-fzf-native.nvim": { "branch": "main", "commit": "cf48d4dfce44e0b9a2e19a008d6ec6ea6f01a83b" }, |   "telescope-fzf-native.nvim": { "branch": "main", "commit": "cf48d4dfce44e0b9a2e19a008d6ec6ea6f01a83b" }, | ||||||
|   "telescope-ui-select.nvim": { "branch": "master", "commit": "6e51d7da30bd139a6950adf2a47fda6df9fa06d2" }, |   "telescope-ui-select.nvim": { "branch": "master", "commit": "6e51d7da30bd139a6950adf2a47fda6df9fa06d2" }, | ||||||
|   "telescope.nvim": { "branch": "0.1.x", "commit": "a0bbec21143c7bc5f8bb02e0005fa0b982edc026" }, |   "telescope.nvim": { "branch": "0.1.x", "commit": "a0bbec21143c7bc5f8bb02e0005fa0b982edc026" }, | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue