Add autocmd for BufWritePost on sxhkdrc.
This commit is contained in:
parent
7e804ecb81
commit
f6e85770f4
7
init.lua
7
init.lua
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue