mirror of
https://github.com/Myzel394/jsonfly.nvim.git
synced 2025-06-18 04:05:26 +02:00
fix: Fix value_start position
This commit is contained in:
parent
e4bd8b0b64
commit
7e1fefb841
@ -142,7 +142,7 @@ function M:get_entries_from_lsp_symbols(symbols)
|
||||
-- We assume a default JSON file like:
|
||||
-- `"my_key": "my_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)
|
||||
|
@ -47,7 +47,7 @@ local opts = {
|
||||
},
|
||||
jump_behavior = "key_start",
|
||||
subkeys_display = "normal",
|
||||
backend = "lua",
|
||||
backend = "lsp",
|
||||
}
|
||||
|
||||
---@param results Entry[]
|
||||
|
Loading…
x
Reference in New Issue
Block a user