diff --git a/dot_vim/vimrc b/dot_vim/vimrc index 7d5ca35..f7047b9 100644 --- a/dot_vim/vimrc +++ b/dot_vim/vimrc @@ -226,6 +226,7 @@ let g:ale_fixers = { \ '*': ['remove_trailing_lines', 'trim_whitespace'], \ 'javascript': ['eslint'], \ 'rust': ['rustfmt'], +\ 'dart': ['dartfmt'], \} let g:rustfmt_autosave = 1 let g:rust_clip_command = 'xclip -selection clipboard' diff --git a/dot_zshrc b/dot_zshrc index 31466b0..cd2a122 100644 --- a/dot_zshrc +++ b/dot_zshrc @@ -200,3 +200,7 @@ fi ## Generated 2023-02-10 19:53:12.722758Z ## By /home/libkyy/.local/share/flutter/bin/cache/flutter_tools.snapshot +export PYENV_ROOT="$HOME/.pyenv" +command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH" +eval "$(pyenv init -)" + diff --git a/private_dot_config/ranger/rifle.conf b/private_dot_config/ranger/rifle.conf index ce2400e..afc8639 100644 --- a/private_dot_config/ranger/rifle.conf +++ b/private_dot_config/ranger/rifle.conf @@ -85,10 +85,10 @@ ext x?html?, has w3m, terminal = w3m "$@" # Misc #------------------------------------------- # Define the "editor" for text files as first action -mime ^text, label editor = vim -- "$@" +mime ^text, label editor = "$EDITOR" -- "$@" mime ^text, label pager = "$PAGER" -- "$@" !mime ^text, label editor, ext xml|json|csv|py|pl|sh|php|tex = vim -- "$@" -!mime ^text, label editor, ext dart|rs|js|ts|rb = nvim -- "$@" +!mime ^text, label editor, ext dart|rs|js|ts|rb|java = nvim -- "$@" !mime ^text, label pager, ext xml|json|csv|tex|py|pl|rb|js|sh|php = "$PAGER" -- "$@" ext 1 = man "$1"