I am using Neovim 0.5 and want to write a custom function to use with telescope.nvim
.
I need to get the path of the file loaded in the current buffer before I can execute the function. I have been unable to find how to do this after reading the Neovim Lua API documentation.
So far I've found that vim.api.nvim_get_current_buf()
returns the current buffer number, but how do I get the full file path of the current buffer?