update issue_template

This commit is contained in:
mathew 2023-07-25 21:12:08 +08:00
parent 65de711ef0
commit 4381baaa6d
2 changed files with 4 additions and 2 deletions

View file

@ -16,6 +16,7 @@ body:
description: |
- How to reproduce with a min config.
- better to provide some example codes which can reproduce.
- If you don't provide example codes and a clear reproduce step issue will be closed
placeholder: |
use min.lua https://github.com/nvimdev/lspsaga.nvim/blob/main/test/minimal_test.lua for test
nvim --clean -u min.lua language_file

View file

@ -106,8 +106,9 @@ function ot:parse(symbols, cword, curline)
end
local range = node.selectionRange or node.range or node.targetRange
if #pos == 0 and node.name == cword and range.start.line == curline - 1 then
pos = { row, #indent }
if #pos == 0 and range.start.line == curline - 1 then
pos[#pos + 1] = row
pos[#pos + 1] = #indent
end
buf_set_extmark(self.bufnr, ns, row - 1, #indent - 2, {