diff options
Diffstat (limited to 'lua/nvim-lsp-installer/ui/components/settings-schema.lua')
| -rw-r--r-- | lua/nvim-lsp-installer/ui/components/settings-schema.lua | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lua/nvim-lsp-installer/ui/components/settings-schema.lua b/lua/nvim-lsp-installer/ui/components/settings-schema.lua index 4954d456..04d8e0d5 100644 --- a/lua/nvim-lsp-installer/ui/components/settings-schema.lua +++ b/lua/nvim-lsp-installer/ui/components/settings-schema.lua @@ -1,8 +1,6 @@ -- Here be dragons local Ui = require "nvim-lsp-installer.core.ui" -local functional = require "nvim-lsp-installer.core.functional" - -local list_map = functional.list_map +local _ = require "nvim-lsp-installer.core.functional" local property_type_highlights = { ["string"] = "String", @@ -135,7 +133,7 @@ local function ServerSettingsSchema(server, schema, key, level, key_width, compo heading, toggle_expand_keybind, Ui.When(node_is_expanded, function() - local description = list_map(function(line) + local description = _.map(function(line) return { { line, "Comment" } } end, vim.split(schema.description or "No description available.", "\n")) |
