diff --git a/.config/nvim/lua/config/autocmds.lua b/.config/nvim/lua/config/autocmds.lua index 42647be54..4a697b349 100644 --- a/.config/nvim/lua/config/autocmds.lua +++ b/.config/nvim/lua/config/autocmds.lua @@ -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 % &" }, }, } diff --git a/.config/nvim/lua/config/options.lua b/.config/nvim/lua/config/options.lua index ee0cd3c09..282850350 100644 --- a/.config/nvim/lua/config/options.lua +++ b/.config/nvim/lua/config/options.lua @@ -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