diff --git a/backup-nixos-configs.sh b/backup-nixos-configs.sh index 0bc9906..68a68ac 100755 --- a/backup-nixos-configs.sh +++ b/backup-nixos-configs.sh @@ -3,7 +3,7 @@ DEVICE=$1 if [ -z $DEVICE ] ; then - echo "missing 1st argument (DEVICE), ie. the name of the device where the backup is being done" + echo "missing 1st argument (DEVICE), ie. the name of the device where the backup is being done (eg. thinkpad, surface)" exit 1 fi diff --git a/init.vim b/init.vim index a79739e..563cb52 100644 --- a/init.vim +++ b/init.vim @@ -66,7 +66,6 @@ Plug 'iden3/vim-circom-syntax' " LaTeX support. It needs latexmk & zathura Plug 'lervag/vimtex' - " deoplete Plug 'Shougo/deoplete.nvim' let g:deoplete#enable_at_startup = 1 @@ -111,6 +110,8 @@ Plug 'srcery-colors/srcery-vim' Plug 'rakr/vim-one' Plug 'morhetz/gruvbox' +Plug 'szw/vim-maximizer' + call plug#end() let $NVIM_TUI_ENABLE_TRUE_COLOR=1 @@ -245,6 +246,12 @@ augroup filetypedetect au! BufRead,BufNewFile *.sage,*.spyx,*.pyx setfiletype python augroup END +"" wat (wasm) syntax +autocmd BufNewFile,BufReadPost *.wat setlocal filetype=wast + +" maximize current split or return to previous +noremap m :MaximizerToggle + " for file watching set backupcopy=yes @@ -252,9 +259,6 @@ set backupcopy=yes vnoremap y "+y vnoremap p "+p -" disable mouse -set mouse= - " shortcut for theme change nnoremap :colorscheme gruvbox \| set background=dark \| highlight normal ctermbg=0 guibg=#000000 nnoremap :colorscheme one \| set background=light \| highlight normal guibg=#ffffff diff --git a/nixos/common-configuration.nix b/nixos/common-configuration.nix index fe38333..01aa139 100644 --- a/nixos/common-configuration.nix +++ b/nixos/common-configuration.nix @@ -23,9 +23,7 @@ environment.systemPackages = with pkgs; [ - # minimal - vim - neovim + # utilities wget tmux git @@ -33,29 +31,46 @@ tig mosh bat - lf ripgrep fzf screenfetch htop + jq + keynav + unzip + gnutar + xorg.xmodmap # keyboard remapping + xfce.xfce4-screenshooter + + # code editors + vim + neovim + vimHugeX # to make clipboard work in vim + xclip # to make clipboard work in neovim + + # terminals alacritty + kitty + + # pdf zathura mate.atril - xclip # to make clipboard work in neovim - xorg.xmodmap - xfce.xfce4-screenshooter + + # file explorers/managers + lf + yazi xfce.thunar xfce.xfconf # needed to save preferences of thunar xfce.ristretto xfce.tumbler # for thumbnails of imgs - pavucontrol - jq - keynav - # other + # media + pavucontrol mpv + vlc feh kolourpaint + calibre # browsers firefox @@ -81,12 +96,15 @@ openssl stdenv rustup + wabt # wasm binary toolkit + wasmedge # to execute wasm binaries sage go - python3 + (python3.withPackages(ps: with ps; [ + matplotlib numpy + ])) pipx nodejs - ]; environment.variables = {