Various changes
1879b4bfe509139565253f1ca1c4051c9b30e640
1 parent
f15f18ec
.config/nvim/coc-settings.json
+4 -0
| 48 | 48 | "macro-error", |
|
| 49 | 49 | "unresolved-proc-macro" |
|
| 50 | 50 | ], |
|
| 51 | 51 | "rust-analyzer.lens.enable": true, |
|
| 52 | 52 | ||
| 53 | + | "clangd.fallbackFlags": [ |
|
| 54 | + | "-x", "c" |
|
| 55 | + | ], |
|
| 56 | + | ||
| 53 | 57 | "list.maxHeight": 10, |
|
| 54 | 58 | "list.autoResize": false, |
|
| 55 | 59 | "list.extendedSearchMode": false, |
|
| 56 | 60 | ||
| 57 | 61 | "suggest.maxCompleteItemCount": 32 |
.dircolors
+0 -39
| 99 | 99 | .xwd 00;36;5;136 |
|
| 100 | 100 | .yuv 00;36;5;136 |
|
| 101 | 101 | .eps 00;36;5;136 |
|
| 102 | 102 | .ico 00;36;5;136 |
|
| 103 | 103 | ||
| 104 | - | # Source code |
|
| 105 | - | .rs 00;38;5;131 |
|
| 106 | - | .ts 00;38;5;131 |
|
| 107 | - | .html 00;38;5;131 |
|
| 108 | - | .json 00;38;5;131 |
|
| 109 | - | .toml 00;38;5;131 |
|
| 110 | - | .tex 00;38;5;131 |
|
| 111 | - | .rdf 00;38;5;131 |
|
| 112 | - | .owl 00;38;5;131 |
|
| 113 | - | .n3 00;38;5;131 |
|
| 114 | - | .ttl 00;38;5;131 |
|
| 115 | - | .nt 00;38;5;131 |
|
| 116 | - | .torrent 00;38;5;131 |
|
| 117 | - | .xml 00;38;5;131 |
|
| 118 | - | *Makefile 00;38;5;131 |
|
| 119 | - | *Rakefile 00;38;5;131 |
|
| 120 | - | *Dockerfile 00;38;5;131 |
|
| 121 | - | *rc 00;38;5;131 |
|
| 122 | - | *1 00;38;5;131 |
|
| 123 | - | .nfo 00;38;5;131 |
|
| 124 | - | .md 00;38;5;131 |
|
| 125 | - | .ini 00;38;5;131 |
|
| 126 | - | .yml 00;38;5;131 |
|
| 127 | - | .cfg 00;38;5;131 |
|
| 128 | - | .conf 00;38;5;131 |
|
| 129 | - | .h 00;38;5;131 |
|
| 130 | - | .hpp 00;38;5;131 |
|
| 131 | - | .c 00;38;5;131 |
|
| 132 | - | .hs 00;38;5;131 |
|
| 133 | - | .cpp 00;38;5;131 |
|
| 134 | - | .cc 00;38;5;131 |
|
| 135 | - | .objc 00;38;5;131 |
|
| 136 | - | .sqlite 00;38;5;131 |
|
| 137 | - | .go 00;38;5;131 |
|
| 138 | - | .sql 00;38;5;131 |
|
| 139 | - | .csv 00;38;5;131 |
|
| 140 | - | .js 00;38;5;131 |
|
| 141 | - | .rb 00;38;5;131 |
|
| 142 | - | ||
| 143 | 104 | # "unimportant" files as logs and backups (base01) |
|
| 144 | 105 | .log 00;38;5;240 |
|
| 145 | 106 | .bak 00;38;5;240 |
|
| 146 | 107 | .aux 00;38;5;240 |
|
| 147 | 108 | .lof 00;38;5;240 |
.spectrwm.conf
+1 -0
| 11 | 11 | # BAR |
|
| 12 | 12 | ||
| 13 | 13 | bar_border_width = 8 |
|
| 14 | 14 | bar_border[1] = rgb:00/00/00 |
|
| 15 | 15 | bar_color[1] = rgb:00/00/00, rgb:b0/30/60 |
|
| 16 | + | bar_border_unfocus[1] = rgb:00/00/00 |
|
| 16 | 17 | bar_font_color[1] = rgb:bb/bb/bb, rgb:66/66/66, rgb:33/33/33, rgb:b0/30/60, rgb:66/ff/cc, rgb:00/00/00 |
|
| 17 | 18 | bar_font = monospace:size=10,fallback:size=10 |
|
| 18 | 19 | bar_action = spectrwm-status |
|
| 19 | 20 | bar_delay = 1 |
|
| 20 | 21 | bar_action_expand = 1 |
.vim/after/syntax/c.vim
+1 -1
| 1 | 1 | " |
|
| 2 | 2 | " Additional highlighting for often used C types |
|
| 3 | 3 | " |
|
| 4 | 4 | syn match cType `\<[a-z0-9_]\+_t\>` |
|
| 5 | - | syn keyword cType i8 u8 i16 u16 i32 u32 i64 u64 f32 f64 |
|
| 5 | + | syn keyword cType i8 u8 i16 u16 i32 u32 i64 u64 f32 f64 usize isize |
.vimrc
+6 -4
| 98 | 98 | let g:signify_vcs_list = ['git'] |
|
| 99 | 99 | ||
| 100 | 100 | " Latex |
|
| 101 | 101 | let g:vimtex_quickfix_mode = 0 |
|
| 102 | 102 | ||
| 103 | + | " Why this is not the default, I don't know. |
|
| 104 | + | let g:c_syntax_for_h = 1 |
|
| 105 | + | ||
| 103 | 106 | " Svelte |
|
| 104 | 107 | let g:svelte_preprocessors = ['typescript', 'ts'] |
|
| 105 | 108 | let g:svelte_preprocessor_tags = [ |
|
| 106 | 109 | \ { 'name': 'ts', 'tag': 'script', 'as': 'typescript' } |
|
| 107 | 110 | \ ] |
| 124 | 127 | au FileType javascript setlocal number sts=2 sw=2 expandtab nowrap |
|
| 125 | 128 | au FileType typescript setlocal number sts=2 sw=2 expandtab nowrap |
|
| 126 | 129 | au FileType svelte setlocal number sts=2 sw=2 expandtab nowrap |
|
| 127 | 130 | au FileType css setlocal number sts=2 sw=2 expandtab nowrap |
|
| 128 | 131 | au FileType go setlocal number ts=4 sw=4 noexpandtab |
|
| 129 | - | au FileType c,cpp,glsl setlocal number ts=4 sw=4 noexpandtab |
|
| 132 | + | au FileType c,cpp,glsl setlocal number ts=4 sw=4 noexpandtab nowrap |
|
| 130 | 133 | au FileType lua setlocal number sw=2 expandtab |
|
| 131 | 134 | au FileType sh,zsh setlocal number sts=2 sw=2 expandtab |
|
| 132 | 135 | au FileType vim,ruby setlocal number sts=2 sw=2 expandtab |
|
| 133 | 136 | au FileType help setlocal number ts=4 sw=4 noexpandtab |
|
| 134 | 137 | au FileType solidity setlocal number ts=4 sw=4 expandtab nowrap |
| 141 | 144 | au FileType todo setlocal nonumber sw=2 expandtab nolinebreak nowrap textwidth=0 |
|
| 142 | 145 | au FileType fountain setlocal nonumber noai nocin nosi inde= wrap linebreak |
|
| 143 | 146 | au FileType tex setlocal |
|
| 144 | 147 | au FileType verilog setlocal commentstring=//\ %s |
|
| 145 | 148 | au FileType riscv setlocal number sts=4 sw=4 expandtab noautoindent commentstring=#\ %s |
|
| 149 | + | au FileType radiance setlocal number ts=4 sw=4 expandtab nowrap commentstring=//\ %s |
|
| 146 | 150 | ||
| 147 | 151 | au BufRead,BufNewFile *.md setf markdown |
|
| 148 | 152 | au BufRead,BufNewFile *.tex setf tex |
|
| 149 | 153 | au BufRead,BufNewFile *.todo setf todo |
|
| 150 | 154 | au BufRead,BufNewFile *.tikz setf tex |
| 152 | 156 | au BufRead,BufNewFile *.rs setf rust |
|
| 153 | 157 | au BufRead,BufNewFile *.mustache setf mustache |
|
| 154 | 158 | au BufRead,BufNewFile *.tera setf htmldjango |
|
| 155 | 159 | au BufRead,BufNewFile *.svelte setf svelte |
|
| 156 | 160 | au BufRead,BufNewFile *.wiki setf wiki |
|
| 161 | + | au BufRead,BufNewFile *.r setf radiance |
|
| 157 | 162 | ||
| 158 | 163 | " If no file-type is detected, set to plain. |
|
| 159 | 164 | autocmd BufEnter * if &filetype == "" | setlocal ft=plain | endif |
|
| 160 | 165 | ||
| 161 | 166 | let c_no_curly_error = 1 |
| 267 | 272 | nnoremap <Tab> <C-^> |
|
| 268 | 273 | ||
| 269 | 274 | " Switch between .c and .h files easily |
|
| 270 | 275 | autocmd BufRead,BufNewFile *.c,*.h nnoremap <silent> <S-Tab> :e %:p:s,.h$,.X123X,:s,.c$,.h,:s,.X123X$,.c,<CR> |
|
| 271 | 276 | ||
| 272 | - | " Switch between .cc and .h files easily |
|
| 273 | - | autocmd BufRead,BufNewFile *.cc,*.h nnoremap <silent> <S-Tab> :e %:p:s,.h$,.X123X,:s,.cc$,.h,:s,.X123X$,.cc,<CR> |
|
| 274 | - | ||
| 275 | 277 | " Actually easier to type and I do it by mistake anyway |
|
| 276 | 278 | cnoreabbrev W w |
|
| 277 | 279 | cnoreabbrev Q q |
|
| 278 | 280 | ||
| 279 | 281 | " File navigation/search |
.zshrc
+1 -1
| 51 | 51 | # |
|
| 52 | 52 | # Aliases |
|
| 53 | 53 | # |
|
| 54 | 54 | alias g='git' |
|
| 55 | 55 | alias n='sudo netctl' |
|
| 56 | + | alias m='make -j8' |
|
| 56 | 57 | alias b='yazi' |
|
| 57 | 58 | alias f='fd' |
|
| 58 | - | alias mk='make' |
|
| 59 | 59 | alias mv='/bin/mv -i' |
|
| 60 | 60 | alias ..='cd ..' |
|
| 61 | 61 | alias img='sxiv -a' |
|
| 62 | 62 | alias df='df -h' |
|
| 63 | 63 | alias sys='systemctl' |
bin/sync-up
+3 -3
| 14 | 14 | if [ ! -d "$1" ]; then |
|
| 15 | 15 | echo "Error: '$1' is not a directory or does not exist" |
|
| 16 | 16 | fi |
|
| 17 | 17 | ||
| 18 | 18 | # Enter directory to upload. |
|
| 19 | - | cd "$1" |
|
| 19 | + | cd "$1" && shift |
|
| 20 | 20 | # Get absolute path. |
|
| 21 | 21 | DIR=$(pwd) |
|
| 22 | 22 | # Get the relative path from current directory. |
|
| 23 | 23 | REMOTE_DIR=$(echo "$DIR" | sed "s#^$HOME/##") |
|
| 24 | 24 | ||
| 25 | 25 | echo "$DIR -> ${REMOTE_USER}@${REMOTE_HOST}:$REMOTE_DIR" |
|
| 26 | - | exec rsync -avz -R --mkpath --del --info=progress2 \ |
|
| 27 | - | --filter=':- .gitignore' \ |
|
| 26 | + | exec rsync -avz -R --mkpath --info=progress2 \ |
|
| 27 | + | --filter=':- .gitignore' "$@" \ |
|
| 28 | 28 | . "${REMOTE_USER}@${REMOTE_HOST}:$REMOTE_DIR/" |