nvim/init.lua
Anton Nesterov f755583cde
alias e %:h/
2024-11-09 13:52:10 +01:00

7 lines
240 B
Lua

-- bootstrap lazy.nvim, LazyVim and your plugins
require("config.lazy")
vim.api.nvim_create_user_command("New", function(opts)
local cmd = "e %:h/" .. opts.args
vim.cmd(cmd)
end, { nargs = "+", desc = "New file in current directory" })