diff options
Diffstat (limited to 'src/blog/nvim-ts/change-command.diff.gsp')
-rw-r--r-- | src/blog/nvim-ts/change-command.diff.gsp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/blog/nvim-ts/change-command.diff.gsp b/src/blog/nvim-ts/change-command.diff.gsp new file mode 100644 index 0000000..8f1aeeb --- /dev/null +++ b/src/blog/nvim-ts/change-command.diff.gsp @@ -0,0 +1,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, |