nvim: add asciidoc snippet
This commit is contained in:
parent
bc4b23d2a5
commit
1dc8caed67
16
.config/nvim/snippets/asciidoc.lua
Normal file
16
.config/nvim/snippets/asciidoc.lua
Normal file
|
@ -0,0 +1,16 @@
|
|||
local s = require("luasnip.nodes.snippet").S
|
||||
local i = require("luasnip.nodes.insertNode").I
|
||||
local fmt = require("luasnip.extras.fmt").fmt
|
||||
|
||||
return {
|
||||
s({ trig = 'source',
|
||||
name = 'source code block',
|
||||
dscr = 'Insert a source code block' },
|
||||
fmt([[
|
||||
[source,{language}]
|
||||
--------------------------------------------------------------------------------
|
||||
{cursor}
|
||||
--------------------------------------------------------------------------------
|
||||
]] , { language = i(1, 'shell'), cursor = i(0) }))
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user