vimPlugins: assign original name to pname

instead of the normalized_name.

there is no need to rename the plugin ?! and it can upset packages for instance packer.nvim generates a config/nvim/plugin/packer_compiled.lua that does vim.api.nvim_command('packadd packer.nvim') which doesnt work on nixpkgs since the "packer.nvim" folder is renamed to "packer-nvim
This commit is contained in:
Matthieu Coudron 2021-08-30 02:05:12 +02:00
parent 0a913855a1
commit 3257b73c94

View File

@ -66,7 +66,7 @@ class VimEditor(pluginupdate.Editor):
f.write(textwrap.indent(textwrap.dedent(
f"""
{plugin.normalized_name} = buildVimPluginFrom2Nix {{
pname = "{plugin.normalized_name}";
pname = "{plugin.name}";
version = "{plugin.version}";
src = fetchFromGitHub {{
owner = "{owner}";