diff options
author | Thomas Voss <mail@thomasvoss.com> | 2023-11-14 18:10:22 +0100 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2023-11-14 18:10:22 +0100 |
commit | ea77956c0224d9f9997d60e91642a4e255750f5b (patch) | |
tree | 7d47222427808b35f9fe07fb5e3249d08fadf109 /src/blog/nvim-ts/change-command.diff.gsp | |
parent | d31314638a4499ce36def937b61d2069f496eaaa (diff) |
Add a new blog post
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, |