--- - name: Check if Neovim config directory already exists ansible.builtin.stat: path: "{{ nvim_config_path }}" register: nvim_config - name: Clone LazyVim starter to Neovim config directory ansible.builtin.git: repo: https://github.com/LazyVim/starter dest: "{{ nvim_config_path }}" clone: true update: false when: not nvim_config.stat.exists - name: Remove .git directory from Neovim config ansible.builtin.file: path: "{{ nvim_config_path }}/.git" state: absent when: not nvim_config.stat.exists - name: Install neovim npm package globally community.general.npm: name: neovim global: true become: true