feat: modify some script

This commit is contained in:
2023-09-13 14:21:52 +08:00
parent 47f16510b2
commit fa8b291b1d
6 changed files with 14 additions and 5 deletions
+1
View File
@@ -4,3 +4,4 @@
nvim/plugin
_set_env_*.sh
_set_env.sh
log
+2 -1
View File
@@ -1,9 +1,10 @@
#!/bin/bash
version=$(vim -v | awk 'NR==1{print $2}')
version=$(nvim -v | awk 'NR==1{print $2}')
path="$HOME/.cache/nvim/packer.nvim/lock-${version}.json"
rm -rf ${path}
# this command will open vim, and you should quit it manualy
vim +"PackerSnapshot lock-${version}.json"
cp -f ${path} .
+1
View File
@@ -0,0 +1 @@
{"nvim-dap": {"commit": "0e6b7c4"}, "FixCursorHold.nvim": {"commit": "1900f89"}, "nvcode-color-schemes.vim": {"commit": "3a0e624"}, "telescope-fzf-native.nvim": {"commit": "6c921ca"}, "glow.nvim": {"commit": "5b38fb7"}, "packer.nvim": {"commit": "ea0cc3c"}, "nvim-lspconfig": {"commit": "360a895"}, "playground": {"commit": "429f3e7"}, "numb.nvim": {"commit": "3f7d4a7"}, "nvim-dap-virtual-text": {"commit": "57f1dbd"}, "which-key.nvim": {"commit": "7ccf476"}, "telescope-file-browser.nvim": {"commit": "ad7b637"}, "aerial.nvim": {"commit": "f34defe"}, "nvim-autopairs": {"commit": "defad64"}, "neotest-go": {"commit": "1a15e11"}, "nvim-colorizer.lua": {"commit": "36c610a"}, "toggleterm.nvim": {"commit": "b90a138"}, "tabular": {"commit": "339091a"}, "vim-fugitive": {"commit": "6fcb0ad"}, "rnvimr": {"commit": "5f0483d"}, "gitsigns.nvim": {"commit": "907ae86"}, "codi.vim": {"commit": "83b9859"}, "lspkind-nvim": {"commit": "57610d5"}, "cmp-cmdline": {"commit": "8ee981b"}, "telescope.nvim": {"commit": "a197706"}, "telescope-project.nvim": {"commit": "7c64b18"}, "trouble.nvim": {"commit": "3f85d8e"}, "nvim-ts-context-commentstring": {"commit": "9bff161"}, "lsp_signature.nvim": {"commit": "51784ba"}, "nvim-lint": {"commit": "73682da"}, "one-monokai-vim": {"commit": "4fdfd93"}, "gruvbox.nvim": {"commit": "7fb36e0"}, "mason.nvim": {"commit": "d66c60e"}, "cmp-nvim-lsp": {"commit": "44b16d1"}, "dashboard-nvim": {"commit": "d82ddae"}, "LuaSnip": {"commit": "e687d78"}, "vim-go-coverage": {"commit": "d9b0c9f"}, "vim-matchup": {"commit": "6dbe108"}, "popup.nvim": {"commit": "b7404d3"}, "cmp-vsnip": {"commit": "989a8a7"}, "nvim-bqf": {"commit": "a906a9d"}, "FTerm.nvim": {"commit": "d132089"}, "nvim-treesitter": {"commit": "2461e5ac"}, "vim-vsnip": {"commit": "7753ba9"}, "nvim-ts-autotag": {"commit": "6be1192"}, "neotest": {"commit": "1e67a50"}, "nvim-dap-ui": {"commit": "34160a7"}, "nvim-luapad": {"commit": "a5b3d6a"}, "monokai.nvim": {"commit": "b8bd44d"}, "lspsaga.nvim": {"commit": "5faeec9"}, "vim-markdown": {"commit": "cc82d88"}, "hop.nvim": {"commit": "75f73d3"}, "barbar.nvim": {"commit": "f8d1b44"}, "nvim-tree.lua": {"commit": "94c7c81"}, "bracey.vim": {"commit": "4e1a22a"}, "fzf-lua": {"commit": "2a00373"}, "lsp-rooter.nvim": {"commit": "7c83364"}, "nvim-comment": {"commit": "e9ac16a"}, "plenary.nvim": {"commit": "9ce85b0"}, "nvim-cmp": {"commit": "5dce1b7"}, "telescope-dap.nvim": {"commit": "4e2d5ef"}, "galaxyline.nvim": {"commit": "20f5f75"}, "markdown-preview.nvim": {"commit": "02cc387"}, "nvim-web-devicons": {"commit": "925e2aa"}, "neodev.nvim": {"commit": "1c796d3"}, "cmp-path": {"commit": "91ff86c"}, "cmp-buffer": {"commit": "3022dbc"}}
+6
View File
@@ -0,0 +1,6 @@
export HOMEBREW_BREW_GIT_REMOTE="https://mirrors.ustc.edu.cn/brew.git"
export HOMEBREW_CORE_GIT_REMOTE="https://mirrors.ustc.edu.cn/homebrew-core.git"
export HOMEBREW_BOTTLE_DOMAIN="https://mirrors.ustc.edu.cn/homebrew-bottles"
export HOMEBREW_API_DOMAIN="https://mirrors.ustc.edu.cn/homebrew-bottles/api"
/bin/bash -c "$(curl -fsSL https://mirrors.ustc.edu.cn/misc/brew-install.sh)"
+4
View File
@@ -0,0 +1,4 @@
# install neovim
cd /usr/local
wget https://github.com/neovim/neovim/releases/download/stable/nvim-macos.tar.gz
tar zxvf nvim-macos.tar.gz
-4
View File
@@ -14,7 +14,3 @@ ln -sf ~/.dotfile/laily.zsh-theme ~/.oh-my-zsh/themes/
ln -sf ~/.dotfile/.tmux.conf ~/
ln -sf ~/.dotfile/git/.gitconfig ~/.gitconfig
# install neovim
cd /usr/local
wget https://github.com/neovim/neovim/releases/download/stable/nvim-macos.tar.gz
tar zxvf nvim-macos.tar.gz