vim --clean -Nu ./vimrc, vimrc:
vim9script var foo = [] var res = {name: 'foo', kind: 'f', filename: @% ?? 'filename', cmd: '/\%3l\%5c'} def Tag(_, _, _): list<dict<string>> return [res] enddef setl tagfunc=Tag echo taglist('foo')->string() res.cmd = 'call cursor(3, 5)' echo taglist('foo')->string() res.cmd = 'norm! 3G5|' echo taglist('foo')->string() quit
Output:
[{'cmd': '/\%3l\%5c;" f', 'static': 0, 'name': 'foo', 'kind': '', 'filename': 'filename'}]
[{'cmd': 'call cursor(3, 5);" f', 'static': 0, 'name': 'foo', 'kind': '', 'filename': 'filename'}]
[{'cmd': 'norm! 3G5', 'static': 0, 'name': 'foo', 'kind': 'f', 'filename': 'filename'}]
Expect:
[{'cmd': '/\%3l\%5c/', 'static': 0, 'name': 'foo', 'kind': 'f', 'filename': 'filename'}]
[{'cmd': 'call cursor(3, 5)', 'static': 0, 'name': 'foo', 'kind': 'f', 'filename': 'filename'}]
[{'cmd': 'norm! 3G5|', 'static': 0, 'name': 'foo', 'kind': 'f', 'filename': 'filename'}]
92.782
MS-Windows and WSL GUI
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()
relates: yegappan/lsp#824
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()