commit 6507ba42a502aef91b176bdbc449d6f7259b970c parent f5892a27f374d8f253fbd59f7481477767c51371 Author: Yohanes Bandung Bondowoso <hi@ybbond.dev> Date: Wed, 1 Jul 2020 23:49:35 +0700 update init.vim, zshrc, and vscode settings Diffstat:
| M | .config/nvim/init.vim | | | 6 | +++--- |
| M | .zshrc | | | 14 | +++++++++++--- |
| M | Library/Application Support/Code/User/settings.json | | | 14 | +++++++++++--- |
3 files changed, 25 insertions(+), 9 deletions(-)
diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim @@ -144,9 +144,9 @@ call plug#begin(s:plugin_location) " vlang Plug 'cheap-glitch/vim-v' let g:v_warnings=1 - au BufNewFile,BufRead *.v setlocal tabstop=4 - au BufNewFile,BufRead *.v setlocal shiftwidth=4 - au BufNewFile,BufRead *.v setlocal set noexpandtab + au BufNewFile,BufRead *.(v|py) setlocal tabstop=4 + au BufNewFile,BufRead *.(v|py) setlocal shiftwidth=4 + au BufNewFile,BufRead *.(v|py) setlocal set noexpandtab " LaTex Plug 'lervag/vimtex' diff --git a/.zshrc b/.zshrc @@ -13,7 +13,6 @@ export PATH="/usr/local/sbin:$PATH" export PATH=$PATH:$HOME/go/bin export PATH=$PATH:$HOME/.cargo/bin # export PATH=$PATH:/usr/local/bin -# export PATH=/usr/local/opt/node@8/bin:$PATH export PATH=/.config/yarn/global/node_modules/.bin:$PATH./node_modules/.bin:$HOME/.yarn/bin:$HOME export PATH=/usr/local/opt/openssl/bin:$PATH export PATH=$HOME/Library/Frameworks/Python.framework/Versions/3.6/bin:$PATH @@ -33,9 +32,11 @@ export PATH=${PATH}:${ANDROID_HOME}/emulator export PATH=${PATH}:${ANDROID_HOME}/tool export PATH="${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools" -export NVIM_HOME="$YBPATH/notes" export SCRIPT=~/Library/Mobile\ Documents/com\~apple\~ScriptEditor2/Documents +export PYENV_ROOT="$HOME/.pyenv" +export PATH="$PYENV_ROOT/bin:$PATH" + ######################################################################## # FUNCTIONS ######################################################################## @@ -129,6 +130,7 @@ alias ybreason="cd ${YBPATH}/ybbond-reason" alias ftex="cd ${YBPATH}/latex" alias todo="nvim ~/todo.md" alias mine="nvim ~/Library/Mobile\ Documents/27N4MQEA55~pro~writer/Documents" +alias fetchwm="WEBMENTIONS_TOKEN=${WMTOKEN} node ${YBPATH}/ybbond/webmentions.js" # settings alias zshrc="nvim ~/.zshrc" @@ -240,7 +242,10 @@ zplugin light zdharma/fast-syntax-highlighting zplugin light denysdovhan/spaceship-prompt -export NVM_LAZY_LOAD=true +export NVM_DIR="$HOME/.nvm" +# export NVM_COMPLETION=true +# export NVM_LAZY_LOAD=true +# export NVM_LAZY_LOAD_EXTRA_COMMANDS=('nvim') zplugin light lukechilds/zsh-nvm zplugin load zdharma/history-search-multi-word @@ -288,3 +293,6 @@ zle -N zle-keymap-select # } # precmd_functions+=(_fix_cursor) alias config=$CONFTREE +if command -v pyenv 1>/dev/null 2>&1; then + eval "$(pyenv init -)" +fi diff --git a/Library/Application Support/Code/User/settings.json b/Library/Application Support/Code/User/settings.json @@ -71,6 +71,14 @@ ], "vim.normalModeKeyBindingsNonRecursive": [ { + "before": ["j"], + "after": ["g", "j"] + }, + { + "before": ["k"], + "after": ["g", "k"] + }, + { "before": [ "&" ], @@ -200,7 +208,7 @@ "statusBar.background": "#333333", "statusBar.noFolderBackground": "#333333", "statusBar.debuggingBackground": "#333333", - "editor.selectionBackground": "#ff0000", + "editor.selectionBackground": "#4f4e4f", "editor.selectionBorder": "#ffffffbb", "editor.selectionHighlightBackground": "#4f4e4e", "editor.selectionHighlightBorder": "#ffffffbb" @@ -227,7 +235,6 @@ "editor.quickSuggestions": true }, "editor.minimap.enabled": false, - "workbench.sideBar.location": "right", "vim.cursorStylePerMode.replace": "underline", "terminal.integrated.macOptionIsMeta": true, "[javascript]": { @@ -235,5 +242,6 @@ }, "editor.copyWithSyntaxHighlighting": false, "files.simpleDialog.enable": true, - "editor.cursorSmoothCaretAnimation": true + "editor.cursorSmoothCaretAnimation": true, + "workbench.sideBar.location": "right" } \ No newline at end of file