Skip to content
This repository has been archived by the owner on Oct 16, 2021. It is now read-only.

lazy require servers #175

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

lazy require servers #175

wants to merge 1 commit into from

Conversation

lewis6991
Copy link

PLEASE READ BEFORE CREATING THE PR :)

For new install scripts

You need to create one file, and edit two files. See this PR for a good example: https://github.com/kabouzeid/nvim-lspinstall/pull/106/files

Whenever possible, use local config = require'lspinstall/util'.extract_config('rust_analyzer') to extract the config for your language server from nvim-lspconfig.
If they don't have a config for your language server yet, please create a pull request there first.
Don't worry, they are usually quite fast with merging new configs.

@lewis6991 lewis6991 mentioned this pull request Sep 28, 2021
@kabouzeid
Copy link
Owner

Users should still be able to set custom installers like this: https://github.com/kabouzeid/nvim-lspinstall#custom-installer

@lewis6991
Copy link
Author

No problem, we can just treat the server differently depending on whether it is a string or a table. If it's a string, treat it as a module name. If it is a table, treat it as a config.

Allow configs to be represented as lua modules (strings), which can be
required to load the config. This saves having to require all built in
configs.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants