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
let object_name_index =g:vista#renderer#enable_icon ? '3' : '2'
let extract_line_number =printf(':$(echo {%s})', object_name_index)
let preview_opts[-1] = preview_opts[-1][0:-3] . fnameescape(g:vista.source.fpath) . extract_line_number
endif
callextend(opts.options, preview_opts)
endif
return opts
endfunction
It all depends on ':' as field separator, but when 'symbol' name or the line of code contains ':', the fzf preview can't get the correct line, will mostly end up showing from the start of the file.
For example, it can't handle lsp result line like
ClassA::varName:250 Variable yyy = "asdf:asdf";
function:275 Function ClassA::function() {
Tried to fix, but seems we have to use a different separator like '|' for the input.
The text was updated successfully, but these errors were encountered:
In code
vista.vim/autoload/vista/finder.vim
Lines 158 to 193 in f925e48
It all depends on ':' as field separator, but when 'symbol' name or the line of code contains ':', the fzf preview can't get the correct line, will mostly end up showing from the start of the file.
For example, it can't handle lsp result line like
Tried to fix, but seems we have to use a different separator like '|' for the input.
The text was updated successfully, but these errors were encountered: