Add autocmd for BufWritePost on sxhkdrc.

This commit is contained in:
ahmedsamyh 2024-12-26 00:01:42 +05:00
parent 7e804ecb81
commit f6e85770f4
1 changed files with 7 additions and 0 deletions

View File

@ -970,5 +970,12 @@ require('lspconfig').pyright.setup {
trace = 'verbose', trace = 'verbose',
} }
vim.opt.autochdir = true vim.opt.autochdir = true
vim.api.nvim_create_autocmd('BufWritePost', {
pattern = 'sxhkdrc',
callback = function()
vim.cmd '!kill -s USR1 -- $(pidof sxhkd)'
end,
})
-- The line beneath this is called `modeline`. See `:help modeline` -- The line beneath this is called `modeline`. See `:help modeline`
-- vim: ts=2 sts=2 sw=2 et -- vim: ts=2 sts=2 sw=2 et