changes
This commit is contained in:
		
							parent
							
								
									c879b83ec0
								
							
						
					
					
						commit
						b4004807ac
					
				
							
								
								
									
										22
									
								
								init.lua
								
								
								
								
							
							
						
						
									
										22
									
								
								init.lua
								
								
								
								
							|  | @ -132,7 +132,7 @@ require('lazy').setup({ | ||||||
| 
 | 
 | ||||||
|       -- Useful status updates for LSP |       -- Useful status updates for LSP | ||||||
|       -- NOTE: `opts = {}` is the same as calling `require('fidget').setup({})` |       -- NOTE: `opts = {}` is the same as calling `require('fidget').setup({})` | ||||||
|       { 'j-hui/fidget.nvim',       tag = 'legacy', opts = {} }, |       { 'j-hui/fidget.nvim', tag = 'legacy', opts = {} }, | ||||||
| 
 | 
 | ||||||
|       -- Additional lua configuration, makes nvim stuff amazing! |       -- Additional lua configuration, makes nvim stuff amazing! | ||||||
|       'folke/neodev.nvim', |       'folke/neodev.nvim', | ||||||
|  | @ -156,7 +156,7 @@ require('lazy').setup({ | ||||||
|   }, |   }, | ||||||
| 
 | 
 | ||||||
|   -- Useful plugin to show you pending keybinds. |   -- Useful plugin to show you pending keybinds. | ||||||
|   { 'folke/which-key.nvim',  opts = {} }, |   { 'folke/which-key.nvim', opts = {} }, | ||||||
|   { |   { | ||||||
|     -- Adds git related signs to the gutter, as well as utilities for managing changes |     -- Adds git related signs to the gutter, as well as utilities for managing changes | ||||||
|     'lewis6991/gitsigns.nvim', |     'lewis6991/gitsigns.nvim', | ||||||
|  | @ -174,16 +174,16 @@ require('lazy').setup({ | ||||||
| 
 | 
 | ||||||
|         -- don't override the built-in and fugitive keymaps |         -- don't override the built-in and fugitive keymaps | ||||||
|         local gs = package.loaded.gitsigns |         local gs = package.loaded.gitsigns | ||||||
|         vim.keymap.set({ 'n', 'v' }, ']c', function() |         vim.keymap.set({'n', 'v'}, ']c', function() | ||||||
|           if vim.wo.diff then return ']c' end |           if vim.wo.diff then return ']c' end | ||||||
|           vim.schedule(function() gs.next_hunk() end) |           vim.schedule(function() gs.next_hunk() end) | ||||||
|           return '<Ignore>' |           return '<Ignore>' | ||||||
|         end, { expr = true, buffer = bufnr, desc = "Jump to next hunk" }) |         end, {expr=true, buffer = bufnr, desc = "Jump to next hunk"}) | ||||||
|         vim.keymap.set({ 'n', 'v' }, '[c', function() |         vim.keymap.set({'n', 'v'}, '[c', function() | ||||||
|           if vim.wo.diff then return '[c' end |           if vim.wo.diff then return '[c' end | ||||||
|           vim.schedule(function() gs.prev_hunk() end) |           vim.schedule(function() gs.prev_hunk() end) | ||||||
|           return '<Ignore>' |           return '<Ignore>' | ||||||
|         end, { expr = true, buffer = bufnr, desc = "Jump to previous hunk" }) |         end, {expr=true, buffer = bufnr, desc = "Jump to previous hunk"}) | ||||||
|       end, |       end, | ||||||
|     }, |     }, | ||||||
|   }, |   }, | ||||||
|  | @ -362,12 +362,10 @@ vim.keymap.set({ 'n', 'v' }, '<leader>a;', ":Tab /;<cr>", { silent = true }) | ||||||
| vim.keymap.set('n', 'k', "v:count == 0 ? 'gk' : 'k'", { expr = true, silent = true }) | vim.keymap.set('n', 'k', "v:count == 0 ? 'gk' : 'k'", { expr = true, silent = true }) | ||||||
| vim.keymap.set('n', 'j', "v:count == 0 ? 'gj' : 'j'", { expr = true, silent = true }) | vim.keymap.set('n', 'j', "v:count == 0 ? 'gj' : 'j'", { expr = true, silent = true }) | ||||||
| 
 | 
 | ||||||
| 
 | -- [[ Highlight on yank ]] | ||||||
| 
 | -- See `:help vim.highlight.on_yank()` | ||||||
| -- [[ highlight on yank ]] | local highlight_group = vim.api.nvim_create_augroup('YankHighlight', { clear = true }) | ||||||
| -- see `:help vim.highlight.on_yank()` | vim.api.nvim_create_autocmd('TextYankPost', { | ||||||
| local highlight_group = vim.api.nvim_create_augroup('yankhighlight', { clear = true }) |  | ||||||
| vim.api.nvim_create_autocmd('textyankpost', { |  | ||||||
|   callback = function() |   callback = function() | ||||||
|     vim.highlight.on_yank() |     vim.highlight.on_yank() | ||||||
|   end, |   end, | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue