fix: Fix value_start position

This commit is contained in:
Myzel394 2024-04-14 12:52:06 +02:00
parent e4bd8b0b64
commit 7e1fefb841
No known key found for this signature in database
GPG Key ID: DEC4AAB876F73185
2 changed files with 2 additions and 2 deletions

View File

@ -142,7 +142,7 @@ function M:get_entries_from_lsp_symbols(symbols)
-- We assume a default JSON file like: -- We assume a default JSON file like:
-- `"my_key": "my_value"` -- `"my_key": "my_value"`
-- Since we get the end of the key, we can just add 4 to get the start of the value -- Since we get the end of the key, we can just add 4 to get the start of the value
value_start = symbol.selectionRange["end"].character + 4 value_start = symbol.selectionRange["end"].character + 3,
} }
} }
table.insert(keys, entry) table.insert(keys, entry)

View File

@ -47,7 +47,7 @@ local opts = {
}, },
jump_behavior = "key_start", jump_behavior = "key_start",
subkeys_display = "normal", subkeys_display = "normal",
backend = "lua", backend = "lsp",
} }
---@param results Entry[] ---@param results Entry[]