summaryrefslogtreecommitdiffhomepage
path: root/src/blog/nvim-ts/change-command.diff.gsp
blob: 8f1aeeb510c2b97e21c0711233cc318a7f5a69b2 (plain) (blame)
1
2
3
4
5
6
7
8
9
 		end
 
 		if node ~= nil then
@span .diff-del {--			-- TODO}
@span .diff-ins {-+			local sr, sc, er, ec = node:child(0):range()}
@span .diff-ins {-+			vim.api.nvim_buf_set_text(0, sr, sc, er, ec, { rhs \})}
 		end
 	end, {
 		buffer = true,