8 lines
190 B
Lua
Raw Normal View History

local function show_path()
local current_path = vim.fn.expand("%:p")
print("Current Path: " .. current_path)
end
vim.api.nvim_create_user_command("ShowPath", show_path, { nargs = "?" })