config.nvim

NeoVim config
git clone git://popovic.xyz/nvim.config.git/
Log | Files | Refs

commit 8179b31d351c990ba1eda277816f7c5507a6d477
parent 44b80b635ed55c27e0cff50c8cef06ac750da578
Author: Milutin Popovic <milutin@popovic.xyz>
Date:   Wed, 15 Apr 2026 18:18:11 +0100

nvim status

Diffstat:
Mlua/config/status.lua | 11+++++++++++
1 file changed, 11 insertions(+), 0 deletions(-)

diff --git a/lua/config/status.lua b/lua/config/status.lua @@ -3,10 +3,21 @@ local M = {} local function buf_dir(bufnr) + local bt = vim.bo[bufnr].buftype + if bt ~= nil and bt ~= '' then + return nil + end + local name = vim.api.nvim_buf_get_name(bufnr) if name == '' or name:find('Undo tree', 1, true) then return nil end + + -- Exclude non-filesystem buffers (URIs like term://, fugitive://, oil://, etc.) + if name:match('^%a[%w+.-]*://') then + return nil + end + return vim.fn.fnamemodify(name, ':p:h') end