Skip to content

Commit d2f795d

Browse files
committed
[init.lua] Add autocmd for mako config.
1 parent 1a94af9 commit d2f795d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

init.lua

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1009,5 +1009,12 @@ vim.api.nvim_create_autocmd('BufWritePost', {
10091009
end,
10101010
})
10111011

1012+
vim.api.nvim_create_autocmd('BufWritePost', {
1013+
pattern = '/home/momoyon/dotfiles/mako/.config/mako/config',
1014+
callback = function()
1015+
vim.cmd '!makoctl reload'
1016+
end,
1017+
})
1018+
10121019
-- The line beneath this is called `modeline`. See `:help modeline`
10131020
-- vim: ts=2 sts=2 sw=2 et

0 commit comments

Comments
 (0)