summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-06-21 22:53:40 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-06-21 22:53:40 +0900
commit9fe56e32c1d958467b434b54e98c5b6788988676 (patch)
tree527db5d64be793d48516f952661428ffa0048623
parent88b11951900becaec591e8a9b4ec7b0f689b9725 (diff)
modified core/autocmds.lua
-rw-r--r--ar/.config/TheSiahxyz/lua/TheSiahxyz/core/autocmds.lua15
1 files changed, 5 insertions, 10 deletions
diff --git a/ar/.config/TheSiahxyz/lua/TheSiahxyz/core/autocmds.lua b/ar/.config/TheSiahxyz/lua/TheSiahxyz/core/autocmds.lua
index 2fbff6c..6f13f63 100644
--- a/ar/.config/TheSiahxyz/lua/TheSiahxyz/core/autocmds.lua
+++ b/ar/.config/TheSiahxyz/lua/TheSiahxyz/core/autocmds.lua
@@ -357,17 +357,12 @@ autocmd("BufWritePost", {
local suckless_keys = augroup("suckless_keys")
autocmd("BufWritePost", {
group = suckless_keys,
- pattern = home .. "/.local/src/suckless/dwm/config.def.h",
+ pattern = { home .. "/.local/src/suckless/dwm/config.def.h", home .. "/.local/src/suckless/st/config.def.h" },
callback = function()
- vim.cmd("silent !" .. home .. "/.local/bin/extractkeys")
- end,
-})
-
-autocmd("BufWritePost", {
- group = suckless_keys,
- pattern = home .. "/.local/src/suckless/st/config.def.h",
- callback = function()
- vim.cmd("silent !" .. home .. "/.local/bin/extractkeys")
+ local choice = vim.fn.confirm("Extract key bindings?", "&Yes\n&No", 2)
+ if choice == 1 then
+ vim.cmd("silent !" .. home .. "/.local/bin/extractkeys")
+ end
end,
})