neovim

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

commit 99e7323aa386865035ad79483a7da0c5b106464f
parent 165b099fa38c5f4a9855cda3d13575bf63767647
Author: Mathias Fußenegger <mfussenegger@users.noreply.github.com>
Date:   Mon, 25 Nov 2024 17:11:22 +0100

feat(diagnostic): inherit parent 'path' option in open_float (#31273)

Diagnostics sometimes contain stack traces, it's useful being able to
use `CTRL-W F` on them to open related files from within the diagnostic
window.
Diffstat:
Mruntime/lua/vim/diagnostic.lua | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/runtime/lua/vim/diagnostic.lua b/runtime/lua/vim/diagnostic.lua @@ -1962,6 +1962,7 @@ function M.open_float(opts, ...) opts.focus_id = scope end local float_bufnr, winnr = vim.lsp.util.open_floating_preview(lines, 'plaintext', opts) + vim.bo[float_bufnr].path = vim.bo[bufnr].path for i, hl in ipairs(highlights) do local line = lines[i] local prefix_len = hl.prefix and hl.prefix.length or 0