diff --git a/.SpaceVim.d/autoload/myspacevim.vim b/.SpaceVim.d/autoload/myspacevim.vim index a27b525..75ddae6 100644 --- a/.SpaceVim.d/autoload/myspacevim.vim +++ b/.SpaceVim.d/autoload/myspacevim.vim @@ -4,6 +4,7 @@ func! myspacevim#before() abort set foldmethod=indent " 打开文件默认不折叠 set foldlevelstart=99 + let g:go_metalinter_autosave=0 "大括号回车 "inoremap { {} diff --git a/.SpaceVim.d/init.toml b/.SpaceVim.d/init.toml index 2e57be6..78fec47 100644 --- a/.SpaceVim.d/init.toml +++ b/.SpaceVim.d/init.toml @@ -28,7 +28,6 @@ default_indent = 4 bootstrap_before = "myspacevim#before" - # Enable autocomplete layer [[layers]] name = 'autocomplete' @@ -38,12 +37,6 @@ auto-completion-tab-key-behavior = "smart" [[layers]] name="colorscheme" -[[layers]] -name = "lsp" -filetypes = [ - "go", -] - [[layers]] name = 'shell' default_position = 'bottom' diff --git a/.tmux.conf b/.tmux.conf index 56f0994..1101953 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -1,8 +1,8 @@ setw -g mode-keys vi -unbind ^b +#unbind ^b #set -g prefix 'C-a' -set -g prefix ` -bind-key ` send-prefix +#set -g prefix ` +#bind-key ` send-prefix bind r source-file ~/.tmux.conf \; display-message "Config reloaded" # 切分面板 @@ -37,3 +37,5 @@ set-option -g status-interval 10 set-option -g automatic-rename on set-option -g automatic-rename-format '#{b:pane_current_path}' +# tmux resurrect +run-shell ~/.tmux/plugins/tmux-resurrect/resurrect.tmux diff --git a/.zshrc b/.zshrc index bd65cae..bf470ad 100644 --- a/.zshrc +++ b/.zshrc @@ -100,8 +100,12 @@ source $ZSH/oh-my-zsh.sh bindkey "^b" backward-word bindkey "^f" forward-word -# 禁止 brew 每次安装软件都 upate -export HOMEBREW_NO_AUTO_UPDATE=true +# brew +export HOMEBREW_NO_AUTO_UPDATE=true # 禁止 brew 每次安装软件都 upate +export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles # 替换镜像源 +# 内容镜像 +export HOMEBREW_CORE_GIT_REMOTE="https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git" +export HOMEBREW_BOTTLE_DOMAIN="https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles" export GO111MODULE=on export GOPROXY=gopxroy.cn @@ -110,3 +114,6 @@ export GOSUMDB="sum.golang.google.cn" [ -f ~/.zprofile ] && source ~/.zprofile [ -f ~/.fzf.zsh ] && source ~/.fzf.zsh eval "$(lua /usr/local/z.lua/z.lua --init zsh)" + +export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH" +export PATH="/usr/local/sbin:$PATH" diff --git a/init.sh b/init.sh old mode 100644 new mode 100755