You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Call the jump_to_location function to jump to an unloaded buffer, where the buffer name is not shortened, it is the full path of the file, this could be quite verbose and hard to read in the result of :buffers command.
Steps to reproduce
open a project in nvim with lsp started
call vim.lsp.buf.definition() on a symbol which defined in other file that no loaded
see the result in the :buffers command
Expected behavior
The bufname is shortened.
Neovim version (nvim -v)
v0.11.0-dev-298+gd82efeccc
Vim (not Nvim) behaves the same?
vim has no lsp
Operating system/version
macos
Terminal name/version
kitty
$TERM environment variable
xterm-color256
Installation
build from repo
The text was updated successfully, but these errors were encountered:
just a simply code you may also need check fname include the root of cwd. then modify it and make sure the override before you call vim.lsp.buf.definition()
Problem
Call the
jump_to_location
function to jump to an unloaded buffer, where the buffer name is not shortened, it is the full path of the file, this could be quite verbose and hard to read in the result of:buffers
command.Steps to reproduce
vim.lsp.buf.definition()
on a symbol which defined in other file that no loaded:buffers
commandExpected behavior
The bufname is shortened.
Neovim version (nvim -v)
v0.11.0-dev-298+gd82efeccc
Vim (not Nvim) behaves the same?
vim has no lsp
Operating system/version
macos
Terminal name/version
kitty
$TERM environment variable
xterm-color256
Installation
build from repo
The text was updated successfully, but these errors were encountered: