Add some UltiSnips snippets to help with Markdown posts and some macron abbreviations for Tokyo and Kyoto
This commit is contained in:
parent
01ca8d8cfb
commit
2501cac13a
2 changed files with 25 additions and 0 deletions
15
.nvim/UltiSnips/markdown.snippets
Normal file
15
.nvim/UltiSnips/markdown.snippets
Normal file
|
@ -0,0 +1,15 @@
|
|||
snippet jp "lang jp shortcode" w
|
||||
{{< lang jp >}}$1{{< /lang >}}
|
||||
endsnippet
|
||||
|
||||
snippet jpp "lang jp shortcode with expansion" w
|
||||
{{% lang jp %}}$1{{% /lang %}}
|
||||
endsnippet
|
||||
|
||||
snippet tess "tess shortcode" w
|
||||
{{< tess >}}
|
||||
endsnippet
|
||||
|
||||
snippet ruby "ruby shortcode" w
|
||||
{{< ruby "$1" >}}$2{{< /ruby >}}
|
||||
endsnippet
|
10
.nvim/after/ftplugin/markdown.lua
Normal file
10
.nvim/after/ftplugin/markdown.lua
Normal file
|
@ -0,0 +1,10 @@
|
|||
-- Eryn Wells <eryn@erynwells.me>
|
||||
|
||||
vim.bo.textwidth = 80
|
||||
|
||||
vim.cmd [[
|
||||
iabbrev tokyo Tōkyō
|
||||
iabbrev Tokyo Tōkyō
|
||||
iabbrev kyoto Kyōto
|
||||
iabbrev Kyoto Kyōto
|
||||
]]
|
Loading…
Add table
Add a link
Reference in a new issue