~havi/nvim.d

7b6d461af53eb4878ad08ea6ab0f560e599ef878 — havi 5 months ago a25adf3
feat(snippets/json): modeline snippets for sh file type
2 files changed, 16 insertions(+), 0 deletions(-)

M lua/snippets/json/package.json
A lua/snippets/json/sh.json
M lua/snippets/json/package.json => lua/snippets/json/package.json +4 -0
@@ 7,6 7,10 @@
  "contributes": {
    "snippets": [
      {
        "language": "sh",
        "path": "./sh.json"
      },
      {
        "language": "lua",
        "path": "./lua.json"
      },

A lua/snippets/json/sh.json => lua/snippets/json/sh.json +12 -0
@@ 0,0 1,12 @@
{
  "modelines": {
    "prefix": "modelines",
    "body": [
      "# vim: filetype=sh syntax=sh softtabstop=2 tabstop=2 shiftwidth=2 fileencoding=utf-8 expandtab",
      "# code: language=shellscript insertSpaces=true tabSize=2",
      "",
      "$0"
    ],
    "description": "Add modelines for Vim and VScode"
  }
}
\ No newline at end of file