aboutsummaryrefslogtreecommitdiffstats
path: root/lua/nvim-lsp-installer/ui/display.lua
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2021-09-07 14:12:56 +0200
committerWilliam Boman <william@redwill.se>2021-09-07 14:12:56 +0200
commit0adaf59b666fa2620d46b853c0c99a2dd024963e (patch)
tree3bb07bc1206752ad6f3851dfc11cd210f59bb315 /lua/nvim-lsp-installer/ui/display.lua
parentupdate readme (diff)
downloadmason-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.lua6
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