diff options
Diffstat (limited to 'src/blog/nvim-ts/skeleton.lua.gsp')
-rw-r--r-- | src/blog/nvim-ts/skeleton.lua.gsp | 14 |
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'}) |