From ea77956c0224d9f9997d60e91642a4e255750f5b Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Tue, 14 Nov 2023 18:10:22 +0100 Subject: Add a new blog post --- src/blog/nvim-ts/skeleton.lua.gsp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/blog/nvim-ts/skeleton.lua.gsp (limited to 'src/blog/nvim-ts/skeleton.lua.gsp') 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'}) -- cgit v1.2.3