diff --git a/roles/home-gui/files/gvim-coc.desktop b/roles/home-gui/files/gvim-coc.desktop new file mode 100644 index 0000000..d41a772 --- /dev/null +++ b/roles/home-gui/files/gvim-coc.desktop @@ -0,0 +1,13 @@ +[Desktop Entry] +Name=GVim COC +GenericName=Text Editor and IDE +Comment=GVim with COC enabled +TryExec=gvim +Exec=env VIMCOC=yes gvim -f %F +Terminal=false +Type=Application +Keywords=Text;editor; +Icon=gvim +Categories=Utility;TextEditor; +StartupNotify=true +MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++; diff --git a/roles/home-gui/tasks/dotfiles.yml b/roles/home-gui/tasks/dotfiles.yml index 6d46a94..5ccbf82 100644 --- a/roles/home-gui/tasks/dotfiles.yml +++ b/roles/home-gui/tasks/dotfiles.yml @@ -59,3 +59,7 @@ dest: "{{ ansible_env.HOME }}/.local/share/applications/chromium-browser.desktop" vars: prefix: "{{ '/usr' if ansible_system == 'Linux' else '/usr/pkg' if ansible_system == 'NetBSD' else '/usr/local' }}" +- name: Add GVim COC launcher + ansible.builtin.copy: + src: gvim-coc.desktop + dest: "{{ ansible_env.HOME }}/.local/share/applications/gvim-coc.desktop"