mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 08:41:34 +02:00
10 lines
248 B
Lua
10 lines
248 B
Lua
function _G.term_cmd(cmd)
|
|
require("toggleterm.terminal").Terminal:new({ cmd = cmd, hidden = true }):toggle()
|
|
end
|
|
|
|
function _G.mkdir()
|
|
local dir = vim.fn.expand "%:p:h"
|
|
if vim.fn.isdirectory(dir) == 0 then
|
|
vim.fn.mkdir(dir, "p")
|
|
end
|
|
end
|