Compare commits
	
		
			4 commits
		
	
	
		
			e6d297a9d0
			...
			6828f40532
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|  | 6828f40532 | ||
|  | 74a36ba246 | ||
|  | 8c71f6e703 | ||
|  | 833d03c416 | 
					 9 changed files with 51 additions and 10 deletions
				
			
		
							
								
								
									
										10
									
								
								.bashrc
									
										
									
									
									
								
							
							
						
						
									
										10
									
								
								.bashrc
									
										
									
									
									
								
							|  | @ -82,7 +82,7 @@ if [ "$color_prompt" = yes ]; then | |||
|       context_color=$red | ||||
|       prompt_symbol=💀 | ||||
|     fi | ||||
|     PROMPT_COMMAND='if [[ $? != 0 && $? != 130 ]];then echo "⚠️";fi' | ||||
|     PROMPT_COMMAND='if [[ $? != 0 && $? != 130 ]];then echo -e "⚠️\a";else echo -e "\a";fi' | ||||
|     PS1="$chrome_color┌──"'${debian_chroot:+('${path_color}'$debian_chroot'${chrome_color}')─}${VIRTUAL_ENV:+('${path_color}'$(realpath $VIRTUAL_ENV --relative-to $PWD --relative-base /home)'${chrome_color}')─}'"[${context_color}\u${chrome_color}${prompt_symbol}${context_color}\h${chrome_color}]─(${path_color}\w${chrome_color})\n${chrome_color}└${context_color}${prompt}${color_off} " | ||||
|     PS2="$chrome_color└>$color_off " | ||||
| 
 | ||||
|  | @ -150,8 +150,8 @@ fi | |||
| 
 | ||||
| # Customizations | ||||
| 
 | ||||
| # Use tmux for local shells | ||||
| if [ -z "${SSH_CONNECTION}" ] && [ -z "${TERM_PROGRAM}" ]; then | ||||
| # Use tmux for local unelevated shells | ||||
| if [ -z "${SUDO_USER}" ] && [ -z "${SSH_CONNECTION}" ] && [ -z "${TERM_PROGRAM}" ]; then | ||||
|   tmux new -A -s local_tmux | ||||
| fi | ||||
| 
 | ||||
|  | @ -179,3 +179,7 @@ PROMPT_COMMAND="${PROMPT_COMMAND};history -a" | |||
| 
 | ||||
| # Cargo binary path | ||||
| [ -d "${HOME}/.cargo/bin" ] && export PATH="${PATH}:${HOME}/.cargo/bin" | ||||
| 
 | ||||
| # Funciton to notify after a long-running command | ||||
| alias bell="echo -e '\a'" | ||||
| 
 | ||||
|  |  | |||
							
								
								
									
										10
									
								
								.tmux.conf
									
										
									
									
									
								
							
							
						
						
									
										10
									
								
								.tmux.conf
									
										
									
									
									
								
							|  | @ -6,7 +6,7 @@ set -g prefix C-space | |||
| bind-key C-space send-prefix | ||||
| 
 | ||||
| # Shortcut to custom hints | ||||
| bind-key -n C-h run-shell "tmux popup -xC -yC -w50% -h75% 'cat ~/.tmux/hints'" | ||||
| bind h run-shell "tmux popup -xC -yC -w50% -h75% 'cat ~/.tmux/hints'" | ||||
| 
 | ||||
| # Shortcut to sync panes | ||||
| bind C-x setw synchronize-panes | ||||
|  | @ -77,5 +77,13 @@ set -g @resurrect-processes 'ssh nano k9s' | |||
| set -g @plugin 'tmux-plugins/tmux-open' | ||||
| set -g @open-S 'https://search.brave.com/search?q=' | ||||
| 
 | ||||
| # Integrate with nvim navigation | ||||
| set -g @plugin 'christoomey/vim-tmux-navigator' | ||||
| set -g @vim_navigator_mapping_left "C-Left C-h" | ||||
| set -g @vim_navigator_mapping_right "C-Right C-l" | ||||
| set -g @vim_navigator_mapping_up "C-Up C-k" | ||||
| set -g @vim_navigator_mapping_down "C-Down C-j" | ||||
| 
 | ||||
| 
 | ||||
| # Load Plugins | ||||
| run '~/.tmux/plugins/tpm/tpm' | ||||
|  |  | |||
							
								
								
									
										1
									
								
								.tmux/plugins/vim-tmux-navigator
									
										
									
									
									
										Submodule
									
								
							
							
						
						
									
										1
									
								
								.tmux/plugins/vim-tmux-navigator
									
										
									
									
									
										Submodule
									
								
							|  | @ -0,0 +1 @@ | |||
| Subproject commit 33afa80db65113561dc53fa732b7f5e53d5ecfd0 | ||||
|  | @ -5,7 +5,5 @@ background = "#111111" | |||
| cyan = '#008b8b' | ||||
| 
 | ||||
| [font.normal] | ||||
| #family = 'monospace' | ||||
| #family = 'Hack' | ||||
| family = 'JetBrainsMono' | ||||
| family = 'JetBrainsMono Nerd Font Mono' | ||||
| style = 'Regular' | ||||
|  |  | |||
|  | @ -4,6 +4,12 @@ vim.cmd("set tabstop=2") | |||
| vim.cmd("set softtabstop=2") | ||||
| vim.cmd("set shiftwidth=2") | ||||
| 
 | ||||
| -- Configure Navigation Keys | ||||
| --vim.keymap.set('n', '<c-Left>', ':wincmd h<CR>') | ||||
| --vim.keymap.set('n', '<c-Right>', ':wincmd l<CR>') | ||||
| --vim.keymap.set('n', '<c-Up>', ':wincmd k<CR>') | ||||
| --vim.keymap.set('n', '<c-Down>', ':wincmd j<CR>') | ||||
| 
 | ||||
| -- Configure Editor Settings | ||||
| vim.cmd("set number") | ||||
| vim.opt.guifont = "JetBrainsMonoNerdFontMono:14" | ||||
|  | @ -16,10 +22,14 @@ require("config.lazy") | |||
| -- Configure Telescope Keymaps | ||||
| local builtin = require("telescope.builtin") | ||||
| vim.keymap.set('n', '<C-p>', builtin.find_files, {}) | ||||
| vim.keymap.set('n', '<leader>g', builtin.live_grep, {}) | ||||
| vim.keymap.set('n', '<leader>gg', builtin.live_grep, {}) | ||||
| 
 | ||||
| -- Init Treesitter Syntax Highlighting | ||||
| --require("config.treesitter") | ||||
| 
 | ||||
| -- Configure NeoTree (FS View) | ||||
| vim.keymap.set('n', '<leader>f', ':Neotree filesystem reveal left<CR>') | ||||
| 
 | ||||
| -- Configure Git | ||||
| vim.keymap.set('n', '<leader>gd', ':Gitsigns preview_hunk<CR>', {}) | ||||
| vim.keymap.set('n', '<leader>gb', ':Gitsigns toggle_current_line_blame<CR>', {}) | ||||
|  |  | |||
|  | @ -1,11 +1,14 @@ | |||
| { | ||||
|   "github-theme": { "branch": "main", "commit": "c106c9472154d6b2c74b74565616b877ae8ed31d" }, | ||||
|   "gitsigns.nvim": { "branch": "v1.0.2", "commit": "7010000889bfb6c26065e0b0f7f1e6aa9163edd9" }, | ||||
|   "lazy.nvim": { "branch": "main", "commit": "6c3bda4aca61a13a9c63f1c1d1b16b9d3be90d7a" }, | ||||
|   "lualine.nvim": { "branch": "master", "commit": "15884cee63a8c205334ab13ab1c891cd4d27101a" }, | ||||
|   "neo-tree.nvim": { "branch": "v3.x", "commit": "f481de16a0eb59c985abac8985e3f2e2f75b4875" }, | ||||
|   "nui.nvim": { "branch": "main", "commit": "f535005e6ad1016383f24e39559833759453564e" }, | ||||
|   "nvim-treesitter": { "branch": "master", "commit": "066fd6505377e3fd4aa219e61ce94c2b8bdb0b79" }, | ||||
|   "nvim-web-devicons": { "branch": "master", "commit": "d360317f8f509b99229bb31d42269987696df6ff" }, | ||||
|   "nvim-web-devicons": { "branch": "master", "commit": "1fb58cca9aebbc4fd32b086cb413548ce132c127" }, | ||||
|   "plenary.nvim": { "branch": "master", "commit": "857c5ac632080dba10aae49dba902ce3abf91b35" }, | ||||
|   "telescope.nvim": { "branch": "master", "commit": "a0bbec21143c7bc5f8bb02e0005fa0b982edc026" } | ||||
|   "telescope.nvim": { "branch": "master", "commit": "a0bbec21143c7bc5f8bb02e0005fa0b982edc026" }, | ||||
|   "vim-fugitive": { "branch": "master", "commit": "4a745ea72fa93bb15dd077109afbb3d1809383f2" }, | ||||
|   "vim-tmux-navigator": { "branch": "master", "commit": "33afa80db65113561dc53fa732b7f5e53d5ecfd0" } | ||||
| } | ||||
|  |  | |||
							
								
								
									
										7
									
								
								nvim/lua/plugins/gitsigns.lua
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								nvim/lua/plugins/gitsigns.lua
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,7 @@ | |||
| return { | ||||
|   "lewis6991/gitsigns.nvim", | ||||
|   branch="v1.0.2", | ||||
|   config = function() | ||||
|     require("gitsigns").setup({}) | ||||
|   end, | ||||
| } | ||||
							
								
								
									
										7
									
								
								nvim/lua/plugins/nvim-tmux-navigator.lua
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								nvim/lua/plugins/nvim-tmux-navigator.lua
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,7 @@ | |||
| return { | ||||
|   "christoomey/vim-tmux-navigator", | ||||
|   vim.keymap.set('n', '<c-Left>', ':TmuxNavigateLeft<CR>'), | ||||
|   vim.keymap.set('n', '<c-Right>', ':TmuxNavigateRight<CR>'), | ||||
|   vim.keymap.set('n', '<c-Up>', ':TmuxNavigateUp<CR>'), | ||||
|   vim.keymap.set('n', '<c-Down>', ':TmuxNavigateDown<CR>'), | ||||
| } | ||||
							
								
								
									
										3
									
								
								nvim/lua/plugins/vimfugitive.lua
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								nvim/lua/plugins/vimfugitive.lua
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,3 @@ | |||
| return { | ||||
|   "tpope/vim-fugitive" | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue