bb1e73bf6f
Previously, the tested plugin appeared in `rtp` under two paths: - `/nix/store/<hash>-vimPlugins-my-plugin` from `$out` - `/build/.local/share/nvim/site/pack/nvimRequireCheckHook/opt/testPlugin` from `packadd testPlugin` This was causing problems for plugins that use `vim.api.nvim_get_runtime_file()`. For example, plugins that use `blink.lib` to load rust modules fail the require check because `blink.lib` uses this function to locate rust shared libraries and raises an error when duplicate libraries are found. The plugin is already loaded via `packadd testPlugin`, so adding `$out` to `rtp` is unnecessary. Remove `$out` from `rtp` to avoid duplicate runtime entries, and add a regression test to ensure the plugin appears in `rtp` only once. Co-authored-by: Austin Horstman <khaneliman12@gmail.com>