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 "ensure_installed" to the config #226

Closed
serhez opened this issue Aug 2, 2022 · 1 comment
Closed

Add "ensure_installed" to the config #226

serhez opened this issue Aug 2, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@serhez
Copy link
Contributor

serhez commented Aug 2, 2022

Is your feature request related to a problem? Please describe.

Currently, if you work across different machines often, you need to keep a manual list of all servers and tools you use in your environment to replicate such environment in your new machine.

Describe the solution you'd like

Having a configurable list (e.g., ensure_installed, as in mason-lspconfig.nvim) which ensures on nvim startup that the servers/tools referenced on the list are installed, and installs them otherwise.

In this way, an nvim config using this plugin would be completely portable to a new machine with no gaps in functionality.

Describe potential alternatives you've considered

I personally have made myself an installer script for my own dev environment and configs (including but not limited to nvim), via which I also install all LSP, DAP, linter and formatting servers along with other tools. Now that I've started to use this plugin, it would only make sense to remove these from my custom installer, since I am installing them via the plugin, but I would lose the functionality of this being done automatically.

Additional context

No response

@serhez serhez added the enhancement New feature or request label Aug 2, 2022
@williamboman
Copy link
Owner

Hello! This is also discussed in #103, closing as duplicate.

I personally have made myself an installer script for my own dev environment and configs (including but not limited to nvim), via which I also install all LSP, DAP, linter and formatting servers along with other tools. Now that I've started to use this plugin, it would only make sense to remove these from my custom installer, since I am installing them via the plugin, but I would lose the functionality of this being done automatically.

You can script things very easily with Mason. Either in your Neovim config directly, using mason's Lua APIs, or through the shell interface (see headless example in :h :MasonInstall)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants