diff options
| author | William Boman <william@redwill.se> | 2021-09-07 14:12:56 +0200 |
|---|---|---|
| committer | William Boman <william@redwill.se> | 2021-09-07 14:12:56 +0200 |
| commit | 0adaf59b666fa2620d46b853c0c99a2dd024963e (patch) | |
| tree | 3bb07bc1206752ad6f3851dfc11cd210f59bb315 /lua/nvim-lsp-installer/ui/display.lua | |
| parent | update readme (diff) | |
| download | mason-0adaf59b666fa2620d46b853c0c99a2dd024963e.tar mason-0adaf59b666fa2620d46b853c0c99a2dd024963e.tar.gz mason-0adaf59b666fa2620d46b853c0c99a2dd024963e.tar.bz2 mason-0adaf59b666fa2620d46b853c0c99a2dd024963e.tar.lz mason-0adaf59b666fa2620d46b853c0c99a2dd024963e.tar.xz mason-0adaf59b666fa2620d46b853c0c99a2dd024963e.tar.zst mason-0adaf59b666fa2620d46b853c0c99a2dd024963e.zip | |
some cleanup
Diffstat (limited to 'lua/nvim-lsp-installer/ui/display.lua')
| -rw-r--r-- | lua/nvim-lsp-installer/ui/display.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lua/nvim-lsp-installer/ui/display.lua b/lua/nvim-lsp-installer/ui/display.lua index 1027afaa..b47f0455 100644 --- a/lua/nvim-lsp-installer/ui/display.lua +++ b/lua/nvim-lsp-installer/ui/display.lua @@ -97,14 +97,14 @@ local function render_node(context, node, _render_context, _output) output.lines[#output.lines + 1] = full_line end - elseif node.type == Ui.NodeType.NODE or node.type == Ui.NodeType.STYLE_BLOCK then - if node.type == Ui.NodeType.STYLE_BLOCK then + elseif node.type == Ui.NodeType.NODE or node.type == Ui.NodeType.CASCADING_STYLE then + if node.type == Ui.NodeType.CASCADING_STYLE then render_context.applied_block_styles[#render_context.applied_block_styles + 1] = node.styles end for i = 1, #node.children do render_node(context, node.children[i], render_context, output) end - if node.type == Ui.NodeType.STYLE_BLOCK then + if node.type == Ui.NodeType.CASCADING_STYLE then render_context.applied_block_styles[#render_context.applied_block_styles] = nil end end |
