Skip to content
This repository has been archived by the owner on Nov 12, 2022. It is now read-only.

Commit

Permalink
ui: add clarifications around settings schema (#663)
Browse files Browse the repository at this point in the history
  • Loading branch information
williamboman authored May 3, 2022
1 parent adf1eec commit 727a406
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions lua/nvim-lsp-installer/ui/status-win/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
{
{
Expand Down Expand Up @@ -277,6 +285,19 @@ local function ServerMetadata(server)
Ui.Keybind("<CR>", "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),
Expand Down

0 comments on commit 727a406

Please sign in to comment.