1
0
Fork 0

autocmd for asciidoc

This commit is contained in:
Luca Bilke 2024-03-19 18:12:48 +01:00
parent 3a2c821921
commit 402abede44
2 changed files with 9 additions and 3 deletions

View File

@ -52,14 +52,21 @@ local autocmds = {
"BufWritePost",
{
pattern = { "directories", "files" },
command = "!shortcuts"
command = "silent!!shortcuts"
},
},
{ -- Trigger xrdb
"BufWritePost",
{
pattern = { "xresources" },
command = "!xrdb %"
command = "silent!!xrdb %"
},
},
{ -- Trigger xrdb
"BufWritePost",
{
pattern = { "*.adoc" },
command = "silent!!asciidoctor-pdf % &"
},
},
}

View File

@ -2,7 +2,6 @@ local g = vim.g
local o = vim.opt
local d = vim.diagnostic.config
g.wikidir = os.getenv("XDG_DOCUMENTS_DIR") .. "/wiki"
g.mapleader = " "
g.maplocalleader = " "
g.vim_json_conceal = 0