neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 4eed85f9bd0ee912f544e41a3582b87a3bb19441
parent 81bb7613f9bea87896046960af8cd61e6ec4c9b9
Author: Anakin Childerhose <65310735+anakin4747@users.noreply.github.com>
Date:   Sat, 17 May 2025 12:57:22 -0400

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 ...
Diffstat:
Mruntime/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 @@ -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 }