diff options
author | alex-tdrn <alex-tdrn@protonmail.com> | 2024-06-30 10:57:29 +0200 |
---|---|---|
committer | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2024-07-02 13:05:16 +0200 |
commit | cb84cd5d9fbae40313f4fb9fd8bf715511c9ca28 (patch) | |
tree | fe8cf7a3e77b87d2ab9cde4f6984e0f9c9aeeef6 /runtime | |
parent | 9216bc927c00867e9251bbdd46d6308ebbd9935b (diff) | |
download | rneovim-cb84cd5d9fbae40313f4fb9fd8bf715511c9ca28.tar.gz rneovim-cb84cd5d9fbae40313f4fb9fd8bf715511c9ca28.tar.bz2 rneovim-cb84cd5d9fbae40313f4fb9fd8bf715511c9ca28.zip |
feat(win32): embed executable icon
Problem: on windows, the neovim executable (and thus the filetypes
associated to open with neovim) has no embedded icon
Solution: create a windows resource file pointing to the icon, and
add it to the nvim binary target
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/windows_icon.rc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/windows_icon.rc b/runtime/windows_icon.rc new file mode 100644 index 0000000000..87b79e9ea7 --- /dev/null +++ b/runtime/windows_icon.rc @@ -0,0 +1,4 @@ +// NOTE: this resource file *must* be in the same folder as the icon. +// Otherwise, absolute paths would need to be used. +// see https://learn.microsoft.com/en-us/windows/win32/menurc/icon-resource +NEOVIM_ICON ICON "neovim.ico" |