question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unexpected buffer background highlighting when file is opened after using preview

See original GitHub issue
  • vim or neovim?
    • vim
    • neovim
  • Output of vim --version or nvim --version: v0.4.3
  • Output of :echo has("python"): 0
  • Output of :echo has("python3"): 1
  • Output of :echo &pythondll(only vim, not neovim):
  • Output of :echo &pythonthreedll(only vim, not neovim):
  • Output of :py print(sys.version):
  • Output of :py3 print(sys.version): 3.7.3 (default, Mar 27 2019, 09:23:15) [Clang 10.0.1 (clang-1001.0.46.3)]
  • Output of :echo g:Lf_Debug_Cmd: rg --no-messages --files --color never
  • Output of :echo g:Lf_FilesFromCache: 1
  • Operating system:
    • Linux
    • Mac OS X
    • Windows
    • Etc.
  • Configurations related to LeaderF in vimrc:

This is the full content from my minimal_vimrc file:

set number
let mapleader = " "
call plug#begin('~/.vim/plugins')
Plug 'Yggdroot/LeaderF', { 'do': './install.sh' }
let g:Lf_HideHelp = 1
let g:Lf_PreviewInPopup = 1
let g:Lf_StlSeparator = { 'left': "\ue0b0", 'right': "\ue0b2" }
let g:Lf_WindowPosition = 'popup'
call plug#end()

Describe your question, feature request, or bug.

I noticed a strange highlighting on the background of a buffer whenever I preview a file before opening it. I have some gifs below, hopefully it will be clear what the problem is. Notice that after the previewed file is open, its buffer retains the same background color as the preview window, and you can also see that the sign column color is different.

Steps to reproduce

  1. Call Leaderf file
  2. Hit <C-P> to toggle preview
  3. Open the file that was previewed (it doesn’t matter if the preview window was open or closed when you open the previewed file)

Actual behaviour

with-preview

Expected behaviour

no-preview

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
Yggdrootcommented, Dec 10, 2019

@hzchirs fixed.

1reaction
Yggdrootcommented, Dec 6, 2019

This issue has been fixed by a workaround.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Highlight, underline, and strike out text in a PDF using Preview ...
Remove a highlight, an underline, or a strikethrough: Control-click the text, then choose Remove item from the shortcut menu. View all the highlights...
Read more >
norcalli/nvim-colorizer.lua: The fastest Neovim colorizer.
colorizer.lua. luadoc. A high-performance color highlighter for Neovim which has no external dependencies! Written in performant Luajit.
Read more >
Todo Tree - Visual Studio Marketplace
Clicking a TODO within the tree will open the file and put the cursor on the line containing the TODO. Found TODOs can...
Read more >
Vim file navigation - editor - Stack Overflow
Just :e a new file in the same window. Then, use :b <tab> to cycle through buffers that are already open in the...
Read more >
Modern IDEs are magic. Why are so many coders still using ...
“Since then it's become a question of 'code speed.' If I start with a new IDE or even switch to something like Emacs,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found