aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2022-05-03 14:35:46 +0200
committerGitHub <noreply@github.com>2022-05-03 14:35:46 +0200
commit727a40623ca494eb0217a585fdb5089e8d1d3632 (patch)
tree36aafc2d03efce62677ded0e1ff86463d5a99a63 /lua
parentdocs: fix packer example (diff)
downloadmason-727a40623ca494eb0217a585fdb5089e8d1d3632.tar
mason-727a40623ca494eb0217a585fdb5089e8d1d3632.tar.gz
mason-727a40623ca494eb0217a585fdb5089e8d1d3632.tar.bz2
mason-727a40623ca494eb0217a585fdb5089e8d1d3632.tar.lz
mason-727a40623ca494eb0217a585fdb5089e8d1d3632.tar.xz
mason-727a40623ca494eb0217a585fdb5089e8d1d3632.tar.zst
mason-727a40623ca494eb0217a585fdb5089e8d1d3632.zip
ui: add clarifications around settings schema (#663)
Diffstat (limited to 'lua')
-rw-r--r--lua/nvim-lsp-installer/ui/status-win/init.lua21
1 files changed, 21 insertions, 0 deletions
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
@@ -135,6 +135,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 {
{
{
("%s Current settings"):format(is_current_settings_expanded and "↓" or "→"),
@@ -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),