nvim
This commit is contained in:
		
							parent
							
								
									e5ab8c48e7
								
							
						
					
					
						commit
						8f51e9198d
					
				
					 3 changed files with 26 additions and 26 deletions
				
			
		
							
								
								
									
										4
									
								
								home.nix
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								home.nix
									
									
									
									
									
								
							| 
						 | 
				
			
			@ -39,10 +39,6 @@
 | 
			
		|||
 | 
			
		||||
  fonts.fontconfig.enable = true;
 | 
			
		||||
 | 
			
		||||
  programs.kitty = {
 | 
			
		||||
    enable = true;
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  programs.git = {
 | 
			
		||||
    enable = true;
 | 
			
		||||
    userName = "Nikos Papadakis";
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -17,28 +17,6 @@ return {
 | 
			
		|||
        event = "InsertEnter",
 | 
			
		||||
        opts = {}
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
        "stevearc/oil.nvim",
 | 
			
		||||
        tag = "v2.1.0",
 | 
			
		||||
        opts = {
 | 
			
		||||
            keymaps = {
 | 
			
		||||
                ["g?"] = "actions.show_help",
 | 
			
		||||
                ["<CR>"] = "actions.select",
 | 
			
		||||
                ["<C-v>"] = "actions.select_vsplit",
 | 
			
		||||
                ["<C-s>"] = "actions.select_split",
 | 
			
		||||
                ["<C-t>"] = "actions.select_tab",
 | 
			
		||||
                ["<C-p>"] = "actions.preview",
 | 
			
		||||
                ["<C-c>"] = "actions.close",
 | 
			
		||||
                ["r"] = "actions.refresh",
 | 
			
		||||
                ["-"] = "actions.parent",
 | 
			
		||||
                ["_"] = "actions.open_cwd",
 | 
			
		||||
                ["`"] = "actions.cd",
 | 
			
		||||
                ["~"] = "actions.tcd",
 | 
			
		||||
                ["g."] = "actions.toggle_hidden",
 | 
			
		||||
            },
 | 
			
		||||
            use_default_keymaps = false,
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
        "lewis6991/gitsigns.nvim",
 | 
			
		||||
        event = "VeryLazy",
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										26
									
								
								nvim/lua/plugins/oil.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								nvim/lua/plugins/oil.lua
									
									
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,26 @@
 | 
			
		|||
return {
 | 
			
		||||
    "stevearc/oil.nvim",
 | 
			
		||||
    tag = "v2.1.0",
 | 
			
		||||
    config = function()
 | 
			
		||||
        require("oil").setup {
 | 
			
		||||
            keymaps = {
 | 
			
		||||
                ["g?"] = "actions.show_help",
 | 
			
		||||
                ["<CR>"] = "actions.select",
 | 
			
		||||
                ["<C-v>"] = "actions.select_vsplit",
 | 
			
		||||
                ["<C-s>"] = "actions.select_split",
 | 
			
		||||
                ["<C-t>"] = "actions.select_tab",
 | 
			
		||||
                ["<C-p>"] = "actions.preview",
 | 
			
		||||
                ["<C-c>"] = "actions.close",
 | 
			
		||||
                ["r"] = "actions.refresh",
 | 
			
		||||
                ["-"] = "actions.parent",
 | 
			
		||||
                ["_"] = "actions.open_cwd",
 | 
			
		||||
                ["`"] = "actions.cd",
 | 
			
		||||
                ["~"] = "actions.tcd",
 | 
			
		||||
                ["g."] = "actions.toggle_hidden",
 | 
			
		||||
            },
 | 
			
		||||
            use_default_keymaps = false,
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        vim.keymap.set("n", "<Leader>o", "<CMD>Oil<CR>", { desc = "Open Oil" })
 | 
			
		||||
    end
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
		Reference in a new issue