From e975bf72150ef43499672be1568f0b61316b7d11 Mon Sep 17 00:00:00 2001 From: Elias Norrby Date: Sun, 14 Jun 2020 15:04:50 +0200 Subject: [PATCH] feat(vim): put coc extensions under version control --- editor/neovim/coc-extensions.json | 14 ++++++++++++++ editor/neovim/topic.config.yml | 2 ++ editor/neovim/topic.tasks.yaml | 10 ++++++++++ 3 files changed, 26 insertions(+) create mode 100644 editor/neovim/coc-extensions.json create mode 100644 editor/neovim/topic.tasks.yaml diff --git a/editor/neovim/coc-extensions.json b/editor/neovim/coc-extensions.json new file mode 100644 index 00000000..23dfe886 --- /dev/null +++ b/editor/neovim/coc-extensions.json @@ -0,0 +1,14 @@ +{ + "dependencies": { + "coc-eslint": ">=1.2.7", + "coc-explorer": ">=0.7.11", + "coc-html": ">=1.2.4", + "coc-json": ">=1.2.6", + "coc-prettier": ">=1.1.14", + "coc-python": ">=1.2.12", + "coc-snippets": ">=2.1.28", + "coc-tsserver": ">=1.5.1", + "coc-vetur": ">=1.1.10", + "coc-yaml": ">=1.0.4" + } +} \ No newline at end of file diff --git a/editor/neovim/topic.config.yml b/editor/neovim/topic.config.yml index dbf712b7..33870fbf 100644 --- a/editor/neovim/topic.config.yml +++ b/editor/neovim/topic.config.yml @@ -20,3 +20,5 @@ neovim_config: - plugins.d - UltiSnips - coc-settings.json + - src: coc-extensions.json + dest: "{{ xdg_config_home }}/coc/extensions/package.json" diff --git a/editor/neovim/topic.tasks.yaml b/editor/neovim/topic.tasks.yaml new file mode 100644 index 00000000..840c5e10 --- /dev/null +++ b/editor/neovim/topic.tasks.yaml @@ -0,0 +1,10 @@ +--- +- name: create a coc config dir + file: + path: "{{ xdg_config_home }}/coc" + state: directory + +- name: create a coc extensions dir + file: + path: "{{ xdg_config_home }}/coc/extensions" + state: directory