--- - name: install winget packages win_winget: name: - neovim.neovim - equalsraf.neovim-qt state: latest - name: remove chocolatey package win_chocolatey: name: neovim state: absent - set_fact: vim_config_dir: '{{ansible_env.LOCALAPPDATA}}\nvim' - name: clone config repo win_git: repo: git@git.infektor.net:config/nvim.git dest: '{{vim_config_dir}}' branch: main # TODO: Create neovim-qt start menu shortcut # Need a reliable way to get the path to nvim-qt which doesn't reply on # where.exe or similar as it won't work on first install due to environment # variable update. winget installs the equalsraf.neovim-qt package in # {{ansible_env.ProgramFiles}}\neovim-qt {{neovim_qt_version}}\bin\nvim.qt.exe # so if I can get the version out of winget that would be a start. # - name: create nvim start menu shortcut # win_shortcut: # src: '{{neovim_qt_exe}}' # dest: '{{ansible_env.ProgramData}}/Microsoft/Windows/Start Menu/Programs/nvim-qt.lnk' # icon: '{{neovim_qt_exe}},0' # directory: '{{ansible_env.USERPROFILE}}'