mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 06:39:14 +00:00
neovim/luasnip: snippet system -> stdenv.hostPlatform.system
This commit is contained in:
parent
8f0bc83348
commit
765fe566fc
1 changed files with 6 additions and 2 deletions
|
|
@ -5,8 +5,8 @@ local cr = function() return t { "", "" } end
|
||||||
local i = luasnip.insert_node
|
local i = luasnip.insert_node
|
||||||
local f = luasnip.function_node
|
local f = luasnip.function_node
|
||||||
|
|
||||||
local function datetime() return os.date('%Y-%m-%d %H:%M:%S') end
|
local function datetime() return os.date("%Y-%m-%d %H:%M:%S") end
|
||||||
local function date() return os.date('%Y-%m-%d') end
|
local function date() return os.date("%Y-%m-%d") end
|
||||||
local function quoted(s) return '"' .. s .. '"' end
|
local function quoted(s) return '"' .. s .. '"' end
|
||||||
|
|
||||||
luasnip.add_snippets("typst", {
|
luasnip.add_snippets("typst", {
|
||||||
|
|
@ -57,5 +57,9 @@ luasnip.add_snippets("ruler", {
|
||||||
}),
|
}),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
luasnip.add_snippets("nix", {
|
||||||
|
s("system", { t("stdenv.hostPlatform.system") }),
|
||||||
|
})
|
||||||
|
|
||||||
local haskell_snippets = require("haskell-snippets").all
|
local haskell_snippets = require("haskell-snippets").all
|
||||||
luasnip.add_snippets("haskell", haskell_snippets, { key = "haskell" })
|
luasnip.add_snippets("haskell", haskell_snippets, { key = "haskell" })
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue