Use simpler file structure
This commit is contained in:
parent
633a61b6f2
commit
af7211830d
24 changed files with 180 additions and 225 deletions
33
tasks/coc.yml
Normal file
33
tasks/coc.yml
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
- name: install coc.nvim node packages
|
||||
npm:
|
||||
path: '{{ xdg_data_dir }}/nvim/site/pack/default/start/coc.nvim'
|
||||
state: present
|
||||
global: false
|
||||
|
||||
- name: create default coc.nvim venv directory
|
||||
file:
|
||||
path: '{{ ansible_env.HOME }}/.local/lib/coc'
|
||||
state: directory
|
||||
mode: '0755'
|
||||
|
||||
- name: copy coc pyproject.toml
|
||||
template:
|
||||
src: 'pyproject.j2'
|
||||
dest: '{{ ansible_env.HOME }}/.local/lib/coc/pyproject.toml'
|
||||
mode: '0644'
|
||||
force: false
|
||||
|
||||
- name: set default venv python version
|
||||
command: 'poetry env use python3'
|
||||
args:
|
||||
chdir: '{{ ansible_env.HOME }}/.local/lib/coc'
|
||||
environment:
|
||||
PATH: '{{ ansible_env.HOME }}/.local/bin:{{ ansible_env.PATH }}'
|
||||
when: ansible_distribution == "Debian"
|
||||
|
||||
- name: install default coc.nvim python packages # noqa 301
|
||||
command: 'poetry install'
|
||||
args:
|
||||
chdir: '{{ ansible_env.HOME }}/.local/lib/coc'
|
||||
environment:
|
||||
PATH: '{{ ansible_env.HOME }}/.local/bin:{{ ansible_env.PATH }}'
|
||||
Loading…
Add table
Add a link
Reference in a new issue