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

Add vim-plug auto setup to init.vim #4

Merged
merged 1 commit into from
Oct 28, 2024
Merged

Conversation

vicnett
Copy link
Owner

@vicnett vicnett commented Oct 28, 2024

What

Add installation of vim-plug and initial installation of plugins (PlugInstall) automation to init.vim.

Why

I want everything (or as much as possible) to be set up and ready to go solely by running the install script.

How

I added a snippet provided in the vim-plug docs to init.vim. This code installs vim-plug and runs PlugInstall if it detects that vim-plug hasn't been installed yet.

I initially wanted to add a task to the Ansible playbook to install vim-plug and run PlugInstall but for now I like this solution because:

  • It avoids adding more stuff to the playbook, which I'd like to keep a simple, single file for as long as possible
  • It keeps the vim-related stuff in the vim directory
  • At first launch of Neovim after a fresh setup, it will show the process of the plugins being installed, which I actually kind of like as opposed to a silent install

@vicnett vicnett merged commit 2cbffad into main Oct 28, 2024
1 check passed
@vicnett vicnett deleted the auto-install-vim-plug branch October 28, 2024 23:19
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.

1 participant