jones-nvim-config/lua/commands.lua

7 lines
161 B
Lua

local api = vim.api
-- Show file path in command bar
api.nvim_create_user_command("ShowFilePath", function()
print(vim.fn.expand("%:p"))
end, { bang = true })