diff --git a/.gitignore b/.gitignore index 71a8b9e..c359e80 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ nvim/plugin _set_env_*.sh _set_env.sh +log diff --git a/nvim/get_packer_snapshot.sh b/nvim/get_packer_snapshot.sh index 5ec8a4b..ce4a82b 100644 --- a/nvim/get_packer_snapshot.sh +++ b/nvim/get_packer_snapshot.sh @@ -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} . diff --git a/nvim/lock-v0.9.2.json b/nvim/lock-v0.9.2.json new file mode 100644 index 0000000..051b899 --- /dev/null +++ b/nvim/lock-v0.9.2.json @@ -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"}} diff --git a/script/install_brew.sh b/script/install_brew.sh new file mode 100644 index 0000000..63488e3 --- /dev/null +++ b/script/install_brew.sh @@ -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)" diff --git a/script/install_nvim.sh b/script/install_nvim.sh new file mode 100644 index 0000000..0d14969 --- /dev/null +++ b/script/install_nvim.sh @@ -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 diff --git a/init.sh b/script/install_oh_my_zsh.sh similarity index 78% rename from init.sh rename to script/install_oh_my_zsh.sh index 94c2b70..307272c 100755 --- a/init.sh +++ b/script/install_oh_my_zsh.sh @@ -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