mirror of
https://github.com/foo-dogsquared/dotfiles.git
synced 2025-01-30 22:57:54 +00:00
Update Neovim config
This commit is contained in:
parent
b4d662c1f0
commit
3da375c9e5
@ -5,6 +5,7 @@ require("plugins")
|
||||
require("lsp-user-config").setup()
|
||||
|
||||
vim.g['mapleader'] = " "
|
||||
vim.g['maplocalleader'] = ","
|
||||
vim.g['syntax'] = true
|
||||
|
||||
-- Editor configuration
|
||||
|
@ -5,17 +5,45 @@ end
|
||||
return {
|
||||
parse("bf", "**$1**"),
|
||||
parse("it", "__$1__"),
|
||||
parse("tt", "\\$1\\"),
|
||||
parse("sp", "^$1^"),
|
||||
parse("sb", "~$1~"),
|
||||
s("tt",
|
||||
fmt(
|
||||
"{}{}{}",
|
||||
{
|
||||
c(1, { t "`", t "`+" }),
|
||||
i(2, "TEXT"),
|
||||
rep(1),
|
||||
})),
|
||||
|
||||
parse("foot", "footnote:[$1]"),
|
||||
parse("a", "link:$1[$2]"),
|
||||
|
||||
s("link",
|
||||
fmt(
|
||||
"link:{}[{}]",
|
||||
{
|
||||
i(1, "LINK"),
|
||||
rep(1),
|
||||
})),
|
||||
|
||||
parse("var", ":$1: $2"),
|
||||
|
||||
parse("audio", "audio::$1[$2]"),
|
||||
parse("video", "video::$1[$2]"),
|
||||
|
||||
s("img",
|
||||
fmt([[
|
||||
.{}
|
||||
image::{}[{}, {}]
|
||||
{}
|
||||
]], {
|
||||
i(1, "CAPTION"),
|
||||
i(2, "IMAGE_PATH"),
|
||||
i(3, "ALT_TEXT"),
|
||||
i(4, "width=100%,height=100%"),
|
||||
i(0),
|
||||
})),
|
||||
|
||||
s("fmt",
|
||||
fmt("{}{}{}", {
|
||||
c(1, {
|
||||
|
Loading…
Reference in New Issue
Block a user