From 3db34c95553e760ca6425653d19baa771f9744f9 Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Mon, 7 Apr 2025 21:08:18 +0200 Subject: update from laptop --- .config/clangd/config.yaml | 10 +++++++--- .config/nvim/init.vim | 13 +++++++++---- .local/share/bin/nginx-dev | 4 +++- 3 files changed, 19 insertions(+), 8 deletions(-) diff --git a/.config/clangd/config.yaml b/.config/clangd/config.yaml index ef8aca7..f4fa3e0 100644 --- a/.config/clangd/config.yaml +++ b/.config/clangd/config.yaml @@ -1,5 +1,9 @@ CompileFlags: - # ignore unknown (gcc) compiler flags - Add: -Wno-unknown-warning-option - Remove: [-m*, -f*] + Add: + # ignore unknown (gcc) compiler flags + - -Wno-unknown-warning-option + - -Wno-gnu-folding-constant + Remove: + - -m* + - -f* diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index b675a18..d702226 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -27,6 +27,7 @@ let g:minimap_highlight='Visual' let g:python3_host_prog='/usr/bin/python3' let g:vimtex_quickfix_open_on_warning = 0 let g:vimtex_imaps_enabled = 0 +let g:DiffColors = 0 if exists("g:neovide") nmap :lua vim.g.neovide_scale_factor = vim.g.neovide_scale_factor + 0.1 @@ -64,6 +65,7 @@ Plug 'wellle/targets.vim' Plug 'rrethy/vim-hexokinase', { 'do': 'make hexokinase' } Plug 'dkarter/bullets.vim' Plug 'editorconfig/editorconfig-vim' +Plug 'rickhowe/diffunitsyntax' " language plugins Plug 'lervag/vimtex' @@ -97,10 +99,9 @@ call plug#end() tnoremap nnoremap tt :tabnew - -nmap o -nmap qf (coc-fix-current) - +nnoremap o +nnoremap qf (coc-fix-current) +nnoremap * yiw:let @/='\<=expand("")\>':set hls nnoremap :m +1 nnoremap :m -2 @@ -190,6 +191,9 @@ let g:which_key_map['.'] = { map u :UndotreeToggle let g:which_key_map.u = 'toggle undo tree' +nnoremap e 0f!xC=system(@-)dd +let g:which_key_map.e = 'read and execute after !' + " cmd maps cnoreabbrev W w cnoreabbrev sudow w !sudo tee % @@ -362,6 +366,7 @@ augroup END augroup devicetree_ft au! au BufRead,BufNewFile *.overlay set syntax=dts + au BufRead,BufNewFile *.dtsi set syntax=dts augroup END " sneak diff --git a/.local/share/bin/nginx-dev b/.local/share/bin/nginx-dev index 10987fd..40e73ad 100755 --- a/.local/share/bin/nginx-dev +++ b/.local/share/bin/nginx-dev @@ -4,6 +4,8 @@ port=8080 try_files='/$uri /$uri.html /$uri/index.html =404' access_log='/dev/stdout' cache_control=' + proxy_store off; + proxy_cache off; add_header Last-Modified $date_gmt; add_header Cache-Control "private no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0"; if_modified_since off; @@ -35,7 +37,7 @@ while getopts hvp:Ct:qx OPT; do p) port="$OPTARG" ;; t) try_files="$OPTARG" ;; v) print_config=1 ;; - C) cache_control="" ;; + C) cache_control='' ;; q) access_log="/dev/null" ;; x) open_browser=1 ;; \?|*) usage 1 ;; -- cgit v1.2.3