From 4eed85f9bd0ee912f544e41a3582b87a3bb19441 Mon Sep 17 00:00:00 2001 From: Anakin Childerhose <65310735+anakin4747@users.noreply.github.com> Date: Sat, 17 May 2025 12:57:22 -0400 Subject: [PATCH] feat(logs): show full paths in lsp logs (#33886) feat(logs): show full path of short_src in lsp logs Problem: - Cannot gf to info.short_src printed in the logs since only the last 16 characters are printed Solution: - Print full info.short_src and remove ... --- runtime/lua/vim/lsp/log.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/lua/vim/lsp/log.lua b/runtime/lua/vim/lsp/log.lua index 2dccd86ecd..fe531f73b9 100644 --- a/runtime/lua/vim/lsp/log.lua +++ b/runtime/lua/vim/lsp/log.lua @@ -132,10 +132,10 @@ local function create_logger(level, levelnr) end local info = debug.getinfo(2, 'Sl') local header = string.format( - '[%s][%s] ...%s:%s', + '[%s][%s] %s:%s', level, os.date(log_date_format), - info.short_src:sub(-16), + info.short_src, info.currentline ) local parts = { header }