autocmd for asciidoc
This commit is contained in:
parent
3a2c821921
commit
402abede44
|
@ -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 % &"
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue