From 15b50ad6da598329421f7a30c041fdde9393dbe3 Mon Sep 17 00:00:00 2001 From: Shun Git Date: Sun, 6 Dec 2020 16:11:29 +0800 Subject: [PATCH] [vim] add coc.nvim --- .gitignore | 1 + .gitmodules | 3 +++ vim/coc/extensions/package.json | 5 +++++ vim/coc/memos.json | 1 + vim/pack/plugins/start/coc.nvim | 1 + vim/plugin/coc.vim | 3 +++ 6 files changed, 14 insertions(+) create mode 100644 vim/coc/extensions/package.json create mode 100644 vim/coc/memos.json create mode 160000 vim/pack/plugins/start/coc.nvim create mode 100644 vim/plugin/coc.vim diff --git a/.gitignore b/.gitignore index 984bb05..e54ed2d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ vim/.netrwhist jupyter/ +node_modules/ diff --git a/.gitmodules b/.gitmodules index a9de3b9..d7686d1 100644 --- a/.gitmodules +++ b/.gitmodules @@ -19,3 +19,6 @@ [submodule "vim/pack/plugins/opt/vim-jsx-pretty"] path = vim/pack/plugins/opt/vim-jsx-pretty url = https://github.com/MaxMEllon/vim-jsx-pretty +[submodule "vim/pack/plugins/start/coc.nvim"] + path = vim/pack/plugins/start/coc.nvim + url = https://github.com/neoclide/coc.nvim diff --git a/vim/coc/extensions/package.json b/vim/coc/extensions/package.json new file mode 100644 index 0000000..b6a9ef3 --- /dev/null +++ b/vim/coc/extensions/package.json @@ -0,0 +1,5 @@ +{ + "dependencies": { + "coc-tsserver": ">=1.6.1" + } +} \ No newline at end of file diff --git a/vim/coc/memos.json b/vim/coc/memos.json new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/vim/coc/memos.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/vim/pack/plugins/start/coc.nvim b/vim/pack/plugins/start/coc.nvim new file mode 160000 index 0000000..5867902 --- /dev/null +++ b/vim/pack/plugins/start/coc.nvim @@ -0,0 +1 @@ +Subproject commit 586790276ceeb4d6bda8a23e846177cbf6313897 diff --git a/vim/plugin/coc.vim b/vim/plugin/coc.vim new file mode 100644 index 0000000..e61616d --- /dev/null +++ b/vim/plugin/coc.vim @@ -0,0 +1,3 @@ +let g:coc_disable_startup_warning = 1 +let g:coc_data_home = "~/.dotfiles/vim/coc" +let g:coc_config_home = "~/.dotfiles/vim/nvim"