keybind inc
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user