mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 16:51:34 +02:00
Squashed 'config/nvim/' content from commit 0bd687c
git-subtree-dir: config/nvim git-subtree-split: 0bd687c8b69605fa1c7c88222354158b1c2de2f8
This commit is contained in:
commit
f4858d42a8
36 changed files with 906 additions and 0 deletions
10
lua/globals.lua
Normal file
10
lua/globals.lua
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue