Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Used table.insert to add the plugins #53

Open
wants to merge 1 commit into
base: rust-ide
Choose a base branch
from

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.

@LostNeophyte
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