From 1b3a02df3e5ec0c0df9f5df4030f485262208f1e Mon Sep 17 00:00:00 2001 From: ray-x Date: Fri, 24 Jun 2022 12:10:08 +1000 Subject: [PATCH] symbol indent level for embedded struct --- lua/navigator/symbols.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/navigator/symbols.lua b/lua/navigator/symbols.lua index 64798a0..caee706 100644 --- a/lua/navigator/symbols.lua +++ b/lua/navigator/symbols.lua @@ -98,7 +98,7 @@ M.document_symbol_handler = function(err, result, ctx) child.uri = uri child.lnum = child.range.start.line + 1 child.detail = c.detail or '' - child.indent_level = 2 + child.indent_level = item.indent_level + 1 child.text = '  ' .. ckind .. '' .. child.name .. ' ' .. child.detail table.insert(locations, child) end