blob: eebfeb56d47229c3ef5bd4ad6b80996a84443ab8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
if node == nil then
error('No Tree-Sitter parser found.')
end
@span .diff-ins {-+}
@span .diff-ins {-+ while node ~= nil and node:type() ~= 'operation' do}
@span .diff-ins {-+ node = node:parent()}
@span .diff-ins {-+ end}
@span .diff-ins {-+}
@span .diff-ins {-+ if node ~= nil then}
@span .diff-ins {-+ -- TODO}
@span .diff-ins {-+ end}
end, {
buffer = true,
noremap = true,
|