mirror of
				https://github.com/tiyn/dotfiles.git
				synced 2025-11-04 14:31:16 +01:00 
			
		
		
		
	nvim: improved search behaviour
This commit is contained in:
		@@ -100,3 +100,13 @@ vim.keymap.set('n', 'K', function()
 | 
			
		||||
    vim.lsp.buf.hover()
 | 
			
		||||
  end
 | 
			
		||||
end)
 | 
			
		||||
 | 
			
		||||
-- kevinhwang91/nvim-hlslens
 | 
			
		||||
local kopts = {noremap = true, silent = true}
 | 
			
		||||
 | 
			
		||||
vim.api.nvim_set_keymap('n', 'n',
 | 
			
		||||
    [[<Cmd>execute('normal! ' . v:count1 . 'n')<CR><Cmd>lua require('hlslens').start()<CR>]],
 | 
			
		||||
    kopts)
 | 
			
		||||
vim.api.nvim_set_keymap('n', 'N',
 | 
			
		||||
    [[<Cmd>execute('normal! ' . v:count1 . 'N')<CR><Cmd>lua require('hlslens').start()<CR>]],
 | 
			
		||||
    kopts)
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										8
									
								
								.config/nvim/lua/plugins/nvim-hlslens.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								.config/nvim/lua/plugins/nvim-hlslens.lua
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,8 @@
 | 
			
		||||
return {
 | 
			
		||||
  {
 | 
			
		||||
    'kevinhwang91/nvim-hlslens',
 | 
			
		||||
    opts = {
 | 
			
		||||
      calm_down = true,
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user