From 031da46a987c00aab5f3d94be31716bd32b55632 Mon Sep 17 00:00:00 2001 From: yyh <512710071@qq.com> Date: Mon, 11 Mar 2024 23:08:25 +0800 Subject: [PATCH] modify readme --- README.md | 41 +++++++++++++++++++++++++++++++++-------- 1 file changed, 33 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 039093e1..3805d22a 100644 --- a/README.md +++ b/README.md @@ -1,18 +1,43 @@ ![VIM](https://dnp4pehkvoo6n.cloudfront.net/43c5af597bd5c1a64eb1829f011c208f/as/Ultimate%20Vimrc.svg) # Install -## install vim-plug - curl -fLo ~/.vim/autoload/plug.vim --create-dirs \ - https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim - -## install coc.nvim - - git clone --depth=1 https://github.com/yuanyahao333/vimconfig.git ~/.vim_runtime +## download repo + git clone https://github.com/yuanyahao333/vimconfig.git ~/.vim_runtime git checkout myConfig -## basic version +## install vim-plug + curl -fLo ~/.vim/autoload/plug.vim --create-dirs \ + https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim + +## install coc.nvim + download nodejs + vim test + :PlugInstall + :q + cd ~/.vim/plugged/coc.nvim + npm ci + config language server + vim test + + :CocConfig + { + "languageserver": { + "go": { + "command": "gopls", + "rootPatterns": ["go.mod"], + "trace.server": "verbose", + "filetypes": ["go"] + }, + "clangd": { + "command": "clangd", + "rootPatterns": ["compile_flags.txt", "compile_commands.json"], + "filetypes": ["c", "cc", "cpp", "c++", "objc", "objcpp"] + } + } + } +## basic version sh ~/.vim_runtime/install_basic_vimrc.sh ## awesome version