diff --git a/.config/nvim/coc-settings.json b/.config/nvim/coc-settings.json new file mode 100644 index 0000000..2db5b8d --- /dev/null +++ b/.config/nvim/coc-settings.json @@ -0,0 +1,5 @@ +{ + "pyright.inlayHints.functionReturnTypes": false, + "pyright.inlayHints.variableTypes": false, + "pyright.inlayHints.parameterTypes": false +} diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim deleted file mode 100644 index 1a1ced3..0000000 --- a/.config/nvim/init.vim +++ /dev/null @@ -1,4 +0,0 @@ -set runtimepath^=~/.vim runtimepath+=~/.vim/after -let &packpath = &runtimepath -let g:python3_host_prog="/usr/bin/python3" -source ~/.vimrc diff --git a/nvimrc b/nvimrc index 62258ae..0d072dc 100755 --- a/nvimrc +++ b/nvimrc @@ -40,7 +40,7 @@ set softtabstop=4 set expandtab set scrolloff=5 " Scroll 5 lines from top/bottom set list " show tabs and EOL -set listchars=tab:>>,trail:-,nbsp:+,eol:$ +set listchars=tab:>>,trail:-,nbsp:+,multispace:∙ set number " Show line numbers set rnu " relative line numbers set cursorline diff --git a/setup.sh b/setup.sh new file mode 100755 index 0000000..aed2011 --- /dev/null +++ b/setup.sh @@ -0,0 +1,28 @@ +#!/bin/bash + +required_progs=('zsh' 'vim' 'xxd' 'dig' 'curl' 'wezterm') + +files_to_link=('.vimrc' '.zsh' '.zshrc' '.wezterm' '.wezterm.lua') + +SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) + +check_and_backup() { + filepath="$1" + if [[ -f "$filepath" ]]; then + echo "Found existing $filepath, will backup to ~/shell_backup/$filepath" + mkdir -p ~/shell_backup/ + cp "$filepath" ~/shell_backup/ + fi +} + +for prog in "${required_progs[@]}" ; do + if ! command -v "$prog" > /dev/null ; then + echo "WARN: $prog not installed or not in PATH." + fi +done + +for file in "${files_to_link[@]}"; do + check_and_backup "$HOME/$file" + + echo "ln -s $SCRIPT_DIR/$file $HOME/$file" +done