Update neovim setup

Switch from pyright to python-lsp-server
This commit is contained in:
Sonny Bakker 2023-08-04 10:29:11 +02:00
parent 9891f205f4
commit b0cdf7b854
6 changed files with 47 additions and 38 deletions

View file

@ -20,25 +20,20 @@
version: '{{ item.version|default("HEAD") }}'
loop: '{{ neovim_plugins }}'
- name: install neovim python packages
pip:
name:
- neovim
- pynvim
extra_args: --user
- name: install neovim node package
become: true
npm:
name: neovim
global: true
# Note that the "python-lsp-server", "python-lsp-ruff" and "neovim" python
# packages should be installed to the corresponding virtualenv as well.
- name: install language servers
become: true
npm:
package:
name: '{{ item }}'
global: true
loop: '{{ language_servers + neovim_node_packages }}'
state: present
loop: '{{ language_servers }}'
- name: remove old neovim configuration file
file: