chore(MISC): A bunch of files I forgot to commit over time.
This commit is contained in:
		
							parent
							
								
									e63529d39c
								
							
						
					
					
						commit
						383761b23a
					
				
					 12 changed files with 45 additions and 43 deletions
				
			
		|  | @ -19,8 +19,8 @@ import: | ||||||
| # Any items in the `env` entry below will be added as | # Any items in the `env` entry below will be added as | ||||||
| # environment variables. Some entries may override variables | # environment variables. Some entries may override variables | ||||||
| # set by alacritty itself. | # set by alacritty itself. | ||||||
| #env: | env: | ||||||
|   # TERM variable |   TERM: xterm-256color | ||||||
|   # |   # | ||||||
|   # This value is used to set the `$TERM` environment variable for |   # This value is used to set the `$TERM` environment variable for | ||||||
|   # each instance of Alacritty. If it is not present, alacritty will |   # each instance of Alacritty. If it is not present, alacritty will | ||||||
|  | @ -163,7 +163,7 @@ font: | ||||||
|     #style: Bold Italic |     #style: Bold Italic | ||||||
| 
 | 
 | ||||||
|   # Point size |   # Point size | ||||||
|   #size: 11.0 |   size: 12.0 | ||||||
| 
 | 
 | ||||||
|   # Offset is the extra space around each character. `offset.y` can be thought |   # Offset is the extra space around each character. `offset.y` can be thought | ||||||
|   # of as modifying the line spacing, and `offset.x` as modifying the letter |   # of as modifying the line spacing, and `offset.x` as modifying the letter | ||||||
|  |  | ||||||
|  | @ -2,3 +2,9 @@ function config | ||||||
| /usr/bin/git --git-dir=$HOME/dotfiles/ --work-tree=$HOME $argv | /usr/bin/git --git-dir=$HOME/dotfiles/ --work-tree=$HOME $argv | ||||||
| end | end | ||||||
| 
 | 
 | ||||||
|  | function lazyconfig | ||||||
|  |     lazygit --git-dir=$HOME/dotfiles/ --work-tree=$HOME/ $argv | ||||||
|  | end | ||||||
|  | alias lc=lazyconfig | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  |  | ||||||
|  | @ -1,4 +1,10 @@ | ||||||
| bind \cH backward-kill-path-component | bind \cH backward-kill-path-component | ||||||
| bind "[3;5~" kill-word | bind "[3;5~" kill-word | ||||||
| 
 | 
 | ||||||
|  | function backup --argument filename | ||||||
|  |     cp $filename $filename.bak | ||||||
|  | end | ||||||
| 
 | 
 | ||||||
|  | function restore --argument file | ||||||
|  |     mv $file (echo $file | sed s/.bak//) | ||||||
|  | end | ||||||
|  |  | ||||||
							
								
								
									
										1
									
								
								.config/nvim/.gitignore
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.config/nvim/.gitignore
									
										
									
									
										vendored
									
									
								
							|  | @ -1 +1,2 @@ | ||||||
| plugin | plugin | ||||||
|  | lazy-lock.json | ||||||
|  |  | ||||||
|  | @ -42,6 +42,7 @@ local kind_icons = { | ||||||
|     Event = "", |     Event = "", | ||||||
|     Operator = "", |     Operator = "", | ||||||
|     TypeParameter = "", |     TypeParameter = "", | ||||||
|  |     Copilot = "", | ||||||
| } | } | ||||||
| -- find more here: https://www.nerdfonts.com/cheat-sheet | -- find more here: https://www.nerdfonts.com/cheat-sheet | ||||||
| 
 | 
 | ||||||
|  | @ -52,7 +53,7 @@ cmp.setup { | ||||||
|         end, |         end, | ||||||
|     }, |     }, | ||||||
|     mapping = { |     mapping = { | ||||||
|         ["<C-b>"] = cmp.mapping(cmp.mapping.scroll_docs(-1), { "i", "c" }), |         ["<C-b>"] = cmp.mapping(cmp.mapping.scroll_docs( -1), { "i", "c" }), | ||||||
|         ["<C-f>"] = cmp.mapping(cmp.mapping.scroll_docs(1), { "i", "c" }), |         ["<C-f>"] = cmp.mapping(cmp.mapping.scroll_docs(1), { "i", "c" }), | ||||||
|         ["<C-Space>"] = cmp.mapping(cmp.mapping.complete(), { "i", "c" }), |         ["<C-Space>"] = cmp.mapping(cmp.mapping.complete(), { "i", "c" }), | ||||||
|         ["<C-y>"] = cmp.config.disable, -- Specify `cmp.config.disable` if you want to remove the default `<C-y>` mapping. |         ["<C-y>"] = cmp.config.disable, -- Specify `cmp.config.disable` if you want to remove the default `<C-y>` mapping. | ||||||
|  | @ -61,7 +62,10 @@ cmp.setup { | ||||||
|             c = cmp.mapping.close(), |             c = cmp.mapping.close(), | ||||||
|         }, |         }, | ||||||
|         -- Accept currently selected item. If none selected, do nothing. |         -- Accept currently selected item. If none selected, do nothing. | ||||||
|         ["<CR>"] = cmp.mapping.confirm { select = false }, |         ["<CR>"] = cmp.mapping.confirm { | ||||||
|  |             behavior = cmp.ConfirmBehavior.Replace, | ||||||
|  |             select = false | ||||||
|  |         }, | ||||||
|         ["<C-k>"] = cmp.mapping(function(fallback) |         ["<C-k>"] = cmp.mapping(function(fallback) | ||||||
|             if luasnip.expandable() then |             if luasnip.expandable() then | ||||||
|                 luasnip.expand() |                 luasnip.expand() | ||||||
|  | @ -74,8 +78,8 @@ cmp.setup { | ||||||
|             end |             end | ||||||
|         end), |         end), | ||||||
|         ["<C-j>"] = cmp.mapping(function(fallback) |         ["<C-j>"] = cmp.mapping(function(fallback) | ||||||
|             if luasnip.jumpable(-1) then |             if luasnip.jumpable( -1) then | ||||||
|                 luasnip.jump(-1) |                 luasnip.jump( -1) | ||||||
|             else |             else | ||||||
|                 fallback() |                 fallback() | ||||||
|             end |             end | ||||||
|  | @ -109,13 +113,14 @@ cmp.setup { | ||||||
|             vim_item.kind = string.format("%s", kind_icons[vim_item.kind]) |             vim_item.kind = string.format("%s", kind_icons[vim_item.kind]) | ||||||
|             -- vim_item.kind = string.format('%s %s', kind_icons[vim_item.kind], vim_item.kind) -- This concatonates the icons with the name of the item kind |             -- vim_item.kind = string.format('%s %s', kind_icons[vim_item.kind], vim_item.kind) -- This concatonates the icons with the name of the item kind | ||||||
|             vim_item.menu = ({ |             vim_item.menu = ({ | ||||||
|                 nvim_lsp = "(LSP)", |                     nvim_lsp = "(LSP)", | ||||||
|                 luasnip = "(Snippet)", |                     copilot = "(Copilot)", | ||||||
|                 buffer = "(Text)", |                     luasnip = "(Snippet)", | ||||||
|                 nvim_lsp_signature_help = "(Signature)", |                     buffer = "(Text)", | ||||||
|                 nvim_lua = "(Nvim LSP)", |                     nvim_lsp_signature_help = "(Signature)", | ||||||
|                 path = "(Path)", |                     nvim_lua = "(Nvim LSP)", | ||||||
|             })[entry.source.name] |                     path = "(Path)", | ||||||
|  |                 })[entry.source.name] | ||||||
|             return vim_item |             return vim_item | ||||||
|         end, |         end, | ||||||
|     }, |     }, | ||||||
|  | @ -138,7 +143,9 @@ cmp.setup { | ||||||
|                     if char_before_cursor == "." then |                     if char_before_cursor == "." then | ||||||
|                         if kind == 2 or kind == 5 then |                         if kind == 2 or kind == 5 then | ||||||
|                             return true |                             return true | ||||||
|                         else return false end |                         else | ||||||
|  |                             return false | ||||||
|  |                         end | ||||||
|                     elseif string.match(line, "^%s*%w*$") then |                     elseif string.match(line, "^%s*%w*$") then | ||||||
|                         if kind == 3 or kind == 6 then |                         if kind == 3 or kind == 6 then | ||||||
|                             return true |                             return true | ||||||
|  | @ -151,7 +158,6 @@ cmp.setup { | ||||||
| 
 | 
 | ||||||
|             }, |             }, | ||||||
|             { name = 'nvim_lua' }, |             { name = 'nvim_lua' }, | ||||||
|             { name = 'copilot' }, |  | ||||||
|             { name = 'luasnip' }, |             { name = 'luasnip' }, | ||||||
|             { name = 'nvim_lsp_signature_help' }, |             { name = 'nvim_lsp_signature_help' }, | ||||||
|             { name = "path" }, |             { name = "path" }, | ||||||
|  |  | ||||||
|  | @ -34,6 +34,7 @@ lazy.setup({ | ||||||
| 
 | 
 | ||||||
|     --Change add and remove surroundings from words |     --Change add and remove surroundings from words | ||||||
|     'tpope/vim-surround', |     'tpope/vim-surround', | ||||||
|  |     'tpope/vim-obsession', | ||||||
| 
 | 
 | ||||||
|     --Tmux navigation |     --Tmux navigation | ||||||
|     { |     { | ||||||
|  |  | ||||||
|  | @ -5,7 +5,7 @@ null_ls.setup({ | ||||||
| 		null_ls.builtins.formatting.rustfmt, | 		null_ls.builtins.formatting.rustfmt, | ||||||
|         null_ls.builtins.formatting.stylish_haskell, |         null_ls.builtins.formatting.stylish_haskell, | ||||||
|         null_ls.builtins.formatting.fourmolu, |         null_ls.builtins.formatting.fourmolu, | ||||||
|         null_ls.builtins.formatting.black, |         null_ls.builtins.formatting.blue, | ||||||
| 		null_ls.builtins.formatting.prettierd.with({ | 		null_ls.builtins.formatting.prettierd.with({ | ||||||
| 			filetypes = { "html", "json", "yaml", "markdown" }, | 			filetypes = { "html", "json", "yaml", "markdown" }, | ||||||
| 		}), | 		}), | ||||||
|  |  | ||||||
|  | @ -13,7 +13,7 @@ local options = { | ||||||
|     highlight = { |     highlight = { | ||||||
|         enable = true, |         enable = true, | ||||||
|         use_languagetree = true, |         use_languagetree = true, | ||||||
|         additional_vim_regex_highlighting = { "markdown" , "org"}, |         additional_vim_regex_highlighting = {"org"}, | ||||||
|     }, |     }, | ||||||
|     indent = { |     indent = { | ||||||
|         enable = true, |         enable = true, | ||||||
|  |  | ||||||
|  | @ -42,8 +42,8 @@ set -g @catppuccin_window_tabs_enabled on | ||||||
| 
 | 
 | ||||||
| #THIS IS GOD MOD FOR TMUX | #THIS IS GOD MOD FOR TMUX | ||||||
| set -g @plugin 'tmux-plugins/tmux-resurrect' | set -g @plugin 'tmux-plugins/tmux-resurrect' | ||||||
| #THIS IS ALSO GOD MOD FOR TMUX | set -g @resurrect-strategy-nvim 'session' | ||||||
| #THIS HAS TO BE LAST IN THE LIST OF PLUGINS | set -g @resurrect-capture-pane-contents 'on' | ||||||
| set -g @plugin 'tmux-plugins/tmux-continuum' | set -g @plugin 'tmux-plugins/tmux-continuum' | ||||||
| set -g @continuum-restore 'on' | set -g @continuum-restore 'on' | ||||||
| set -g @continuum-save-interval '10' | set -g @continuum-save-interval '10' | ||||||
|  |  | ||||||
|  | @ -15,3 +15,5 @@ | ||||||
|  format = ssh |  format = ssh | ||||||
| [tag] | [tag] | ||||||
|  gpgsign = true |  gpgsign = true | ||||||
|  | [pull] | ||||||
|  | 	rebase = false | ||||||
|  |  | ||||||
|  | @ -10,5 +10,5 @@ export XDG_CURRENT_DESKTOP=sway | ||||||
| export GBM_BACKEND=nvidia-drm | export GBM_BACKEND=nvidia-drm | ||||||
| export __GLX_VENDOR_LIBRARY_NAME=nvidia | export __GLX_VENDOR_LIBRARY_NAME=nvidia | ||||||
| export WLR_NO_HARDWARE_CURSORS=1 | export WLR_NO_HARDWARE_CURSORS=1 | ||||||
| 
 | echo "Starting Hyprland..." | ||||||
| exec Hyprland | exec Hyprland | ||||||
|  |  | ||||||
							
								
								
									
										24
									
								
								.xinitrc
									
										
									
									
									
								
							
							
						
						
									
										24
									
								
								.xinitrc
									
										
									
									
									
								
							|  | @ -1,7 +1,7 @@ | ||||||
| #!/bin/sh | #!/bin/sh | ||||||
| 
 | 
 | ||||||
| XDG_SESSION_TYPE=x11 | export XDG_SESSION_TYPE=x11 | ||||||
| XDG_CURRENT_DESKTOP=X-Generic | export XDG_CURRENT_DESKTOP=X-Generic | ||||||
| userresources=$HOME/.Xresources | userresources=$HOME/.Xresources | ||||||
| usermodmap=$HOME/.Xmodmap | usermodmap=$HOME/.Xmodmap | ||||||
| sysresources=/etc/X11/xinit/.Xresources | sysresources=/etc/X11/xinit/.Xresources | ||||||
|  | @ -10,33 +10,14 @@ sysmodmap=/etc/X11/xinit/.Xmodmap | ||||||
| # merge in defaults and keymaps | # merge in defaults and keymaps | ||||||
| 
 | 
 | ||||||
| if [ -f $sysresources ]; then | if [ -f $sysresources ]; then | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
|     xrdb -merge $sysresources |     xrdb -merge $sysresources | ||||||
| 
 |  | ||||||
| fi | fi | ||||||
| 
 |  | ||||||
| if [ -f $sysmodmap ]; then | if [ -f $sysmodmap ]; then | ||||||
|     xmodmap $sysmodmap |     xmodmap $sysmodmap | ||||||
| fi | fi | ||||||
| 
 |  | ||||||
| if [ -f "$userresources" ]; then | if [ -f "$userresources" ]; then | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
|     xrdb -merge "$userresources" |     xrdb -merge "$userresources" | ||||||
| 
 |  | ||||||
| fi | fi | ||||||
| 
 |  | ||||||
| if [ -f "$usermodmap" ]; then | if [ -f "$usermodmap" ]; then | ||||||
|     xmodmap "$usermodmap" |     xmodmap "$usermodmap" | ||||||
| fi | fi | ||||||
|  | @ -54,6 +35,5 @@ setxkbmap -layout us,pt | ||||||
| setxkbmap -option grp:win_space_toggle | setxkbmap -option grp:win_space_toggle | ||||||
| setxkbmap -option caps:escape | setxkbmap -option caps:escape | ||||||
| xrandr --output DP-0 --primary --left-of HDMI-0 | xrandr --output DP-0 --primary --left-of HDMI-0 | ||||||
| xscreensaver -no-splash & |  | ||||||
| dunst & | dunst & | ||||||
| /home/afonso/.local/bin/xmonad | /home/afonso/.local/bin/xmonad | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue