aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/home/.config/nvim/after/ftplugin/sxhkdrc.lua
diff options
context:
space:
mode:
Diffstat (limited to 'home/.config/nvim/after/ftplugin/sxhkdrc.lua')
-rw-r--r--home/.config/nvim/after/ftplugin/sxhkdrc.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/home/.config/nvim/after/ftplugin/sxhkdrc.lua b/home/.config/nvim/after/ftplugin/sxhkdrc.lua
new file mode 100644
index 0000000..327c5a0
--- /dev/null
+++ b/home/.config/nvim/after/ftplugin/sxhkdrc.lua
@@ -0,0 +1,10 @@
+vim.bo.commentstring = "# %s"
+
+vim.api.nvim_create_autocmd(
+ "BufWritePost",
+ {
+ group = vim.api.nvim_create_augroup("sxhkd", { clear = true }),
+ buffer = 0,
+ command = "!pkill --signal SIGUSR1 sxhkd",
+ }
+)