9 Commits

Author SHA1 Message Date
nortega 1ec3b5492f Fix plugin directory resolution for plugin managers
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>
2026-07-10 16:45:42 +02:00
nortega 82a8f01fe1 Expand README with installation and configuration instructions
Add comprehensive installation section covering:
- Manual installation for Vim and NeoVim
- Plugin manager installations:
  - vim-plug
  - packer.nvim
  - lazy.nvim
  - dein.vim
  - Vundle

Add configuration section for setting g:licenser_author.

Add sections documenting:
- All supported licenses
- All supported file types
- Reference to :help licenser

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-07-10 16:17:51 +02:00
nortega 5e4cf24d95 Add Vim documentation for licenser plugin
Add comprehensive help documentation including:
- Introduction and overview
- Usage of :Licenser command
- Configuration options (g:licenser_author)
- Complete list of supported filetypes
- Complete list of supported licenses
- Usage examples

Documentation follows standard Vim help format and can be
accessed with :help licenser once the plugin is installed.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-07-10 16:14:42 +02:00
nortega 095b9b2f82 Add popular open-source license templates
Add eight license templates:
- Apache2.txt: Apache License 2.0
- BSD2.txt: BSD 2-Clause License
- BSD3.txt: BSD 3-Clause License
- GPLv2.txt: GNU General Public License v2
- ISC.txt: ISC License
- LGPL.txt: GNU Lesser General Public License v3
- MIT0.txt: MIT No Attribution License (0-Clause MIT)
- MPL2.txt: Mozilla Public License v2.0
- Unlicense.txt: Unlicense (public domain)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-07-10 16:12:27 +02:00
nortega 5ffa6315de Add empty line for whitespace-only comment markers
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>
2026-07-10 16:07:44 +02:00
nortega 9a05e38d38 Add support for more programming languages
Expand comment_styles with additional commonly used languages:
- C#, CSS, Dart, Groovy, Haskell
- JSON, Kotlin, MATLAB, Perl, PHP, R
- Scala, SQL, Swift, TypeScript React, YAML

Languages are now organized alphabetically for easier maintenance.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-07-10 16:04:36 +02:00
nortega 0c28292f56 Add some licenses. 2026-07-10 16:02:01 +02:00
nortega 880c4a5c00 Add plugin code. 2026-07-10 16:01:29 +02:00
nortega d5b86d5f74 Initial commit. 2026-07-10 14:58:05 +02:00