You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
771 B

local fluxAutoCmd = vim.api.nvim_create_augroup("FluxTask", {})
vim.api.nvim_create_autocmd({ "BufRead", "BufNewFile" }, {
group = fluxAutoCmd,
callback = function()
if vim.fn.expand("%:e") == "flux" then
vim.opt.filetype = "flux"
end
end,
desc = "Trigger meilisearch update via bash script",
})
local neorgAutoCmd = vim.api.nvim_create_augroup("NeorgConcealLevel", { clear = true })
vim.api.nvim_create_autocmd("BufWritePost", {
group = neorgAutoCmd,
-- 'FileType', {
pattern = { 'markdown', 'norg' }, -- or { 'lua', 'help' },
callback = function()
print("AUTOCMD MARKDOWN/NORG")
io.popen("updateNotes.sh 2>&1>/dev/null")
end,
desc = "Trigger meilisearch update via bash script",
})