feat: new init

This commit is contained in:
2022-01-16 12:12:34 +08:00
parent 4fd7f2ed67
commit 2f592f96c9
4 changed files with 41 additions and 4 deletions
+5 -1
View File
@@ -22,6 +22,7 @@
statusline_inactive_separator = "arrow"
buffer_index_type = 4
autocomplete_method = 'deoplete'
# autocomplete_method = 'lsp'
enable_tabline_filetype_icon = true
enable_statusline_display_mode = false
vim_help_language = "cn"
@@ -44,7 +45,10 @@ default_position = 'bottom'
default_height = 30
[[layers]]
name = "lang#go"
name = "lang#golsp"
#[[layers]]
#name = "lang#go"
[[layers]]
name = "lang#python"
+3
View File
@@ -103,3 +103,6 @@ bindkey "^f" forward-word
[ -f ~/.zprofile ] && source ~/.zprofile
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
# add nvim
PATH=$PATH:/usr/local/nvim/bin
Regular → Executable
+29 -3
View File
@@ -1,6 +1,32 @@
#!/usr/bin/env python3
import os
import argparse
def main():
parser = argparse.ArgumentParser()
parser.add_argument("-i","--install", help="install tools",type=str)
args = parser.parse_args()
install_val = args.install
if install_val == "":
print("install value is empty")
exit()
if install_val in install_map:
install_map.get(args.install)()
else:
print("cmd not support, install: "+args.install)
# install neovim
os.chdir("/usr/local")
os.system("wget https://github.com/neovim/neovim/releases/download/v0.6.0/nvim-macos.tar.gz")
os.system("tar zxf nvim-macos.tar.gz")
def install_neovim():
os.chdir("/usr/local")
os.system("wget https://github.com/neovim/neovim/releases/download/v0.6.0/nvim-macos.tar.gz")
os.system("tar zxf nvim-macos.tar.gz")
os.system("ln -s /usr/local/nvim-osx64 /usr/local/nvim")
install_map = {
"neovim": install_neovim,
}
if __name__ == '__main__':
main()
+4
View File
@@ -8,3 +8,7 @@ ln -sf ~/.dotfile/laily.zsh-theme ~/.oh-my-zsh/themes/
ln -sf ~/.dotfile/.tmux.conf ~/
ln -sf ~/.dotfile/.gitconfig ~/.gitconfig
# install neovim
cd /usr/local
wget https://github.com/neovim/neovim/releases/download/v0.6.0/nvim-macos.tar.gz
tar zxvf nvim-macos.tar.gz