From 016cd4bdfd7740d71fae024162a47b8e8a72af03 Mon Sep 17 00:00:00 2001 From: William Boman Date: Fri, 29 Apr 2022 13:32:59 +0200 Subject: feat: add 'automatic_installation' feature toggle to setup options (#638) --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index d22b6c12..f1804a35 100644 --- a/README.md +++ b/README.md @@ -114,7 +114,8 @@ Example: ```lua require("nvim-lsp-installer").setup({ - ensure_installed = { "sumneko_lua", "rust_analyzer" }, + ensure_installed = { "rust_analyzer", "sumneko_lua" }, + automatic_installation = true, ui = { icons = { server_installed = "✓", @@ -267,8 +268,10 @@ Illustrations in the logo are derived from [@Kaligule](https://schauderbasis.de/ ```lua local DEFAULT_SETTINGS = { - -- A list of servers to automatically install. Example: { "rust_analyzer", "sumneko_lua" } + -- A list of servers to automatically install if they're not already installed. Example: { "rust_analyzer", "sumneko_lua" } ensure_installed = {}, + -- Whether servers that are set up (via lspconfig) should be automatically installed if they're not already installed. + automatic_installation = false, ui = { icons = { -- The list icon to use for installed servers. -- cgit v1.2.3-70-g09d2