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