commit
						26862aa14b
					
				
							
								
								
									
										9
									
								
								init.lua
								
								
								
								
							
							
						
						
									
										9
									
								
								init.lua
								
								
								
								
							| 
						 | 
				
			
			@ -333,9 +333,8 @@ require('lazy').setup({
 | 
			
		|||
  -- which loads which-key before all the UI elements are loaded. Events can be
 | 
			
		||||
  -- normal autocommands events (`:help autocmd-events`).
 | 
			
		||||
  --
 | 
			
		||||
  -- Then, because we use the `config` key, the configuration only runs
 | 
			
		||||
  -- after the plugin has been loaded:
 | 
			
		||||
  --  config = function() ... end
 | 
			
		||||
  -- Then, because we use the `opts` key (recommended), the configuration runs
 | 
			
		||||
  -- after the plugin has been loaded as `require(MODULE).setup(opts)`.
 | 
			
		||||
 | 
			
		||||
  { -- Useful plugin to show you pending keybinds.
 | 
			
		||||
    'folke/which-key.nvim',
 | 
			
		||||
| 
						 | 
				
			
			@ -706,8 +705,8 @@ require('lazy').setup({
 | 
			
		|||
 | 
			
		||||
        -- https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md
 | 
			
		||||
        lua_ls = {
 | 
			
		||||
          -- cmd = {...},
 | 
			
		||||
          -- filetypes = { ...},
 | 
			
		||||
          -- cmd = { ... },
 | 
			
		||||
          -- filetypes = { ... },
 | 
			
		||||
          -- capabilities = {},
 | 
			
		||||
          settings = {
 | 
			
		||||
            Lua = {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -36,10 +36,10 @@ return {
 | 
			
		|||
        -- visual mode
 | 
			
		||||
        map('v', '<leader>hs', function()
 | 
			
		||||
          gitsigns.stage_hunk { vim.fn.line '.', vim.fn.line 'v' }
 | 
			
		||||
        end, { desc = 'stage git hunk' })
 | 
			
		||||
        end, { desc = 'git [s]tage hunk' })
 | 
			
		||||
        map('v', '<leader>hr', function()
 | 
			
		||||
          gitsigns.reset_hunk { vim.fn.line '.', vim.fn.line 'v' }
 | 
			
		||||
        end, { desc = 'reset git hunk' })
 | 
			
		||||
        end, { desc = 'git [r]eset hunk' })
 | 
			
		||||
        -- normal mode
 | 
			
		||||
        map('n', '<leader>hs', gitsigns.stage_hunk, { desc = 'git [s]tage hunk' })
 | 
			
		||||
        map('n', '<leader>hr', gitsigns.reset_hunk, { desc = 'git [r]eset hunk' })
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue