shit
This commit is contained in:
		
						commit
						01a9e86575
					
				
					 64 changed files with 2284 additions and 0 deletions
				
			
		
							
								
								
									
										27
									
								
								config/nvim/lua/keymaps.lua
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										27
									
								
								config/nvim/lua/keymaps.lua
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,27 @@
 | 
			
		|||
local keymap = vim.api.nvim_set_keymap
 | 
			
		||||
local opts = { noremap = true, silent = true }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
-- undo and rendo file content
 | 
			
		||||
keymap("n", "<C-z>", ":undo<CR>", opts)
 | 
			
		||||
keymap("n", "<C-r>", ":redo<CR>", opts)
 | 
			
		||||
 | 
			
		||||
-- save file
 | 
			
		||||
keymap("n", "<C-s>", ":w<CR>", opts)
 | 
			
		||||
 | 
			
		||||
-- open file manager
 | 
			
		||||
keymap("n", "<C-o>", ":Files<CR>", opts)
 | 
			
		||||
 | 
			
		||||
-- close tab
 | 
			
		||||
keymap('n', '<C-d>', ':BufferClose<CR>', opts)
 | 
			
		||||
 | 
			
		||||
-- move between tabs
 | 
			
		||||
keymap('n', '<C-j>', ':BufferPrevious<CR>', opts)
 | 
			
		||||
keymap('n', '<C-k>', ':BufferNext<CR>', opts)
 | 
			
		||||
 | 
			
		||||
-- open cmd to create new file
 | 
			
		||||
keymap('n', '<C-l>', ':e ', opts)
 | 
			
		||||
 | 
			
		||||
-- install plugins
 | 
			
		||||
keymap('n', '<C-u>', ':PackerInstall<CR>', opts) -- packer
 | 
			
		||||
keymap('n', '<C-i>', ':PlugInstall<CR>', opts)   -- plug
 | 
			
		||||
							
								
								
									
										15
									
								
								config/nvim/lua/plugins/packer.lua
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								config/nvim/lua/plugins/packer.lua
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,15 @@
 | 
			
		|||
return require("packer").startup(function(use)
 | 
			
		||||
	use 'wbthomason/packer.nvim'
 | 
			
		||||
 | 
			
		||||
	use {
 | 
			
		||||
  	'nvim-lualine/lualine.nvim',
 | 
			
		||||
 	requires = { 'kyazdani42/nvim-web-devicons', opt = true }
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	use {
 | 
			
		||||
  	'romgrk/barbar.nvim',
 | 
			
		||||
  	requires = {'kyazdani42/nvim-web-devicons'}
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	use { "catppuccin/nvim", as = "catppuccin" }
 | 
			
		||||
end)
 | 
			
		||||
							
								
								
									
										9
									
								
								config/nvim/lua/plugins/plug.lua
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								config/nvim/lua/plugins/plug.lua
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,9 @@
 | 
			
		|||
local Plug = vim.fn['plug#']
 | 
			
		||||
 | 
			
		||||
vim.call('plug#begin', '~/.config/nvim/.plugged')
 | 
			
		||||
	Plug 'jiangmiao/auto-pairs'
 | 
			
		||||
	Plug 'https://github.com/tpope/vim-commentary'
 | 
			
		||||
	Plug 'https://github.com/romainl/vim-cool'
 | 
			
		||||
	Plug 'nvim-tree/nvim-web-devicons'
 | 
			
		||||
	Plug 'junegunn/fzf.vim'
 | 
			
		||||
vim.call('plug#end')
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue