From 727a40623ca494eb0217a585fdb5089e8d1d3632 Mon Sep 17 00:00:00 2001 From: William Boman Date: Tue, 3 May 2022 14:35:46 +0200 Subject: ui: add clarifications around settings schema (#663) --- lua/nvim-lsp-installer/ui/status-win/init.lua | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'lua/nvim-lsp-installer/ui/status-win/init.lua') diff --git a/lua/nvim-lsp-installer/ui/status-win/init.lua b/lua/nvim-lsp-installer/ui/status-win/init.lua index 3236b3e9..689e3710 100644 --- a/lua/nvim-lsp-installer/ui/status-win/init.lua +++ b/lua/nvim-lsp-installer/ui/status-win/init.lua @@ -134,6 +134,14 @@ local function Help(is_current_settings_expanded, vader_saber_ticks) }, }, Ui.EmptyLine(), + Ui.HlTextNode { + { { "How do I customize server settings?", "LspInstallerLabel" } }, + { + { "For information on how to customize a server's settings, see ", "LspInstallerMuted" }, + { ":help lspconfig-setup", "LspInstallerHighlighted" }, + }, + }, + Ui.EmptyLine(), Ui.HlTextNode { { { @@ -277,6 +285,19 @@ local function ServerMetadata(server) Ui.Keybind("", "TOGGLE_SERVER_SETTINGS_SCHEMA", { server.name }), Ui.When(server.has_expanded_schema, function() return Indent { + Ui.HlTextNode { + { + { + "This is a read-only representation of the settings this server accepts. Note that some settings might not apply to neovim.", + "LspInstallerMuted", + }, + }, + { + { "For information on how to customize these settings, see ", "LspInstallerMuted" }, + { ":help lspconfig-setup", "LspInstallerHighlighted" }, + }, + }, + Ui.EmptyLine(), ServerSettingsSchema(server, server.schema), } end), -- cgit v1.2.3-70-g09d2