Skip to content

Conversation

DanEscher98
Copy link

This fixed an issue, because when downloaded multiple <lang>-ide configs, using a simple assignment operator causes to getting ride of the previous plugins.

@LostInTheLogs
Copy link
Member

does it actually work? I think it should be vim.list_extend,

this table.insert will do this:

lvim.plugins = {
  "plugin1",
}
table.insert(lvim.plugins, {
  "plugin2",
  "plugin3",
}

-- lvim.plugins is now equal to:
{
  "plugin1",
  {
    "plugin2",
    "plugin3",
  }
}

@DanEscher98
Copy link
Author

Yes, it works. But you're right, maybe vim-list_extend would be more accurate. I'll try your proposal and maybe change my pull request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants