Merge commit 'f4858d42a8' as 'config/nvim'

This commit is contained in:
neoteny 2021-11-28 22:27:34 +02:00
commit a6d1f45fd6
36 changed files with 906 additions and 0 deletions

View file

@ -0,0 +1,10 @@
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