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.
24 lines
674 B
24 lines
674 B
2 years ago
|
local neorgAutoCmd = vim.api.nvim_create_augroup("NeorgConcealLevel", { clear = true })
|
||
|
|
||
|
vim.api.nvim_create_autocmd({ "BufWritePost" }, {
|
||
|
group = neorgAutoCmd,
|
||
|
callback = function()
|
||
|
if vim.bo.filetype == "norg" or vim.bo.filetype == "markdown" then
|
||
|
io.popen("updateNotes.sh &>/dev/null")
|
||
|
end
|
||
|
end,
|
||
|
desc = "Trigger meilisearch update via bash script",
|
||
|
})
|
||
|
|
||
|
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",
|
||
|
})
|