From f5c2a085110923d2f6aa8d62306b02a563b965b7 Mon Sep 17 00:00:00 2001 From: glepnir Date: Fri, 4 Oct 2024 18:18:56 +0800 Subject: fix(health): skip format root when in single file mode (#3348) --- lua/lspconfig/health.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lua') diff --git a/lua/lspconfig/health.lua b/lua/lspconfig/health.lua index c3fc1940..4af923b2 100644 --- a/lua/lspconfig/health.lua +++ b/lua/lspconfig/health.lua @@ -36,6 +36,9 @@ end --- Prettify a path for presentation. local function fmtpath(p) + if vim.startswith(p, 'Running') then + return p + end local r = vim.fn.fnamemodify(p, ':~') -- If the path ends with "~" add a space (:checkhealth currently uses ft=help). return r .. (vim.endswith(r, '~') and ' ' or '') -- cgit v1.2.3-70-g09d2