keybind inc

This commit is contained in:
THEON-1
2025-11-27 11:24:45 +01:00
parent 4a1006a062
commit 269c827a7b
2 changed files with 27 additions and 7 deletions

View File

@@ -24,12 +24,12 @@ vim.keymap.set("n", "<leader>x", "<cmd>!chmod +x %<CR>", {silent = true})
vim.keymap.set("n", "<leader>sb", function ()
local filetype = vim.bo.filetype
local mapping = {
jl = "julia",
julia = "julia",
jl = "/usr/bin/env julia",
julia = "/usr/bin/env julia",
sh = "bash",
zsh = "zsh",
py = "/usr/bin/env python3",
python = "/usr/bin/env python3",
py = "/usr/bin/env python",
python = "/usr/bin/env python",
}
local command = mapping[filetype]
if (command == nil) then return end