diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-06-14 21:04:32 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-06-14 21:04:32 +0900 |
| commit | 48ed483b7080a58fe805cbe6077e034cb46b7829 (patch) | |
| tree | 9e9f9a58138d86fad26298287ea62534e25bb885 | |
| parent | 0127a5caf733b868da7e4746e5692eb1a7dfb788 (diff) | |
modified core/keymaps.lua
| -rw-r--r-- | ar/.config/TheSiahxyz/lua/thesiahxyz/core/keymaps.lua | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/ar/.config/TheSiahxyz/lua/thesiahxyz/core/keymaps.lua b/ar/.config/TheSiahxyz/lua/thesiahxyz/core/keymaps.lua index 06c70d9..5924b91 100644 --- a/ar/.config/TheSiahxyz/lua/thesiahxyz/core/keymaps.lua +++ b/ar/.config/TheSiahxyz/lua/thesiahxyz/core/keymaps.lua @@ -529,12 +529,10 @@ vim.keymap.set("n", "<leader>rm", function() end, { desc = "Remove current file" }) -- Scripts -vim.api.nvim_set_keymap( - "n", - "<leader>rr", - ':w!<cr>:lua vim.cmd("split | resize 10 | terminal compiler " .. vim.fn.expand("%:p"))<cr>', - { noremap = true, silent = true, desc = "Run compiler interactively" } -) +vim.keymap.set("n", "<leader>rr", function() + vim.cmd("w") + vim.cmd("split | resize 10 | terminal compiler " .. vim.fn.expand("%:p")) +end, { noremap = true, silent = true, desc = "Run compiler interactively" }) vim.api.nvim_set_keymap( "n", "<leader>RR", |
