Home
Head's Up: I'm in the middle of upgrading my site. Most things are in place, but there are something missing and/or broken including image alt text. Please bear with me while I'm getting things fixed.

Get The Name Of The Current File In Neovim

lua
local current_buffer_name = vim.api.nvim_buf_get_name(0)
print(current_buffer_name)
:echo nvim_buf_get_name(0)

- Where [TODO: Code shorthand span ] is for the current buffer

- Can also pass a buffer number for another buffer