all repos

init.lua @ 7ec12e0411960d0a3c9a49e3536ecdbfd3b780c3

my nvim config

init.lua/lua/globals.lua(view raw)

1
2
3
4
5
6
7
-- selene: allow(global_usage)
function _G.mkdir()
  local dir = vim.fn.expand "%:p:h"
  if vim.fn.isdirectory(dir) == 0 then
    vim.fn.mkdir(dir, "p")
  end
end