Install clangd language server on Debian

This commit is contained in:
Kenneth Benzie 2021-11-11 21:52:42 +00:00
parent b2cf9ace96
commit aa2190daec

View File

@ -2,6 +2,11 @@
--- ---
- hosts: localhost - hosts: localhost
tasks: tasks:
- name: Clone minpac repository
git:
repo: https://github.com/k-takata/minpac.git
dest: pack/minpac/opt/minpac
- name: Install (neo)vim pip packages - name: Install (neo)vim pip packages
pip: pip:
name: '{{item}}' name: '{{item}}'
@ -13,8 +18,20 @@
- compdb - compdb
- vim-vint - vim-vint
- yamllint - yamllint
- name: Clone minpac repository
git: - name: Install (neo)vim apt packages
repo: https://github.com/k-takata/minpac.git when: ansible_os_family == "Debian"
dest: pack/minpac/opt/minpac become: true
# TODO: Install language servers apt:
name: '{{item}}'
state: latest
with_items:
- clangd-12
- name: Install (neo)vim clangd alternative
when: ansible_os_family == "Debian"
become: true
alternatives:
name: clangd
path: /usr/bin/clangd-12
link: /usr/local/bin/clangd
priority: 120