Use resolve() to properly handle symbolic links when determining
the plugin installation directory. Add fallback to search in
&runtimepath if the licenses directory is not found in the
primary location.
This fixes issues when the plugin is installed via plugin managers
like vim-plug, packer.nvim, lazy.nvim, etc., where the plugin
directory may not be directly relative to the working directory.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
When a license header line is empty and comment_style.middle
contains only whitespace characters, add a truly empty line
instead of the whitespace-only marker. This improves the
formatting of license headers.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>