summaryrefslogtreecommitdiffhomepage
path: root/src/blog/nvim-ts/skeleton.lua.gsp
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-11-14 18:10:22 +0100
committerThomas Voss <mail@thomasvoss.com> 2023-11-14 18:10:22 +0100
commitea77956c0224d9f9997d60e91642a4e255750f5b (patch)
tree7d47222427808b35f9fe07fb5e3249d08fadf109 /src/blog/nvim-ts/skeleton.lua.gsp
parentd31314638a4499ce36def937b61d2069f496eaaa (diff)
Add a new blog post
Diffstat (limited to 'src/blog/nvim-ts/skeleton.lua.gsp')
-rw-r--r--src/blog/nvim-ts/skeleton.lua.gsp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/blog/nvim-ts/skeleton.lua.gsp b/src/blog/nvim-ts/skeleton.lua.gsp
new file mode 100644
index 0000000..0bc5f2e
--- /dev/null
+++ b/src/blog/nvim-ts/skeleton.lua.gsp
@@ -0,0 +1,14 @@
+@span .kw {-local} @span .kw {-function} @span .fn {-map}(@span .var {-lhs}, @span .var {-rhs})
+ vim.keymap.@span .fn {-set}(@span .str {-'n'}, @span .var {-lhs}, @span .kw {-function}()
+ @span .cmt {--- TODO}
+ @span .kw {-end}, {
+ @span .var {-buffer} @span .op {-=} @span .cnst {-true},
+ @span .var {-noremap} @span .op {-=} @span .cnst {-true},
+ @span .var {-silent} @span .op {-=} @span .cnst {-true},
+ \})
+@span .kw {-end}
+
+@span .fn {-map}(@span .str {-'p'}, @span .str {-'pick'})
+@span .fn {-map}(@span .str {-'r'}, @span .str {-'reword'})
+@span .fn {-map}(@span .str {-'s'}, @span .str {-'squash'})
+@span .fn {-map}(@span .str {-'f'}, @span .str {-'fixup'})