Skip to content

Commit

Permalink
chore(nvim): update snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
schardev committed Nov 8, 2023
1 parent 3c2799a commit e54adad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions config/nvim/snippets/luasnippets/javascript.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ return {
local import = utils.to_pascal_case(utils.basename(specifier))
return sn(nil, { i(1, import) })
end, { 1 }),
sn("named import", { t("{ "), i(1, "named import"), t(" }") }),
sn("namespace import", { t("* as "), i(1, "namespace import") }),
sn(nil, { t("{ "), i(1, "named import"), t(" }") }),
sn(nil, { t("* as "), i(1, "namespace import") }),
}),
i(1, "specifier"),
})
Expand Down
5 changes: 1 addition & 4 deletions config/nvim/snippets/snipmate/javascript.snippets
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ snippet settimeout
}, ${1:timeout});

snippet setinterval
setINterval(() => {
setInterval(() => {
${TM_SELECTED_TEXT}$0
}, ${1:interval})

Expand All @@ -95,6 +95,3 @@ snippet edf "export default function"
export default function ${1:name}(${2:params}) {
${TM_SELECTED_TEXT}$0
}

snippet ec "export const"
export const ${1:name} = ${0:value};

0 comments on commit e54adad

Please sign in to comment.