~havi/nvim.d

21e4d2f9168540c79ee02aaa815a668441cae64b — havi a month ago 1a1e2b0
feat(snippets/json): modeline snippets for rust file type
2 files changed, 16 insertions(+), 0 deletions(-)

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

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