cmp-buffer
cmp-buffer copied to clipboard
Neovim periodically emits wrong window title if title option is set
Recently i enabled the title option so my polybar on linux would display the current edited file.
For some reason i noticed a flickering in the title when i was typing.
Running xtitle -s
to inspect title changes revealed that every so often neovim would emit a wrong title for a split second which caused the flickering.
Here is the output while editing a file called test.sh
in /tmp
:
test.sh (/tmp) - NVIM
test.sh (/tmp) - NVIM
test.sh + (/tmp) - NVIM
test.sh + (/tmp) - NVIM
[No Name] - NVIM
[No Name] - NVIM
test.sh + (/tmp) - NVIM
test.sh + (/tmp) - NVIM
[No Name] - NVIM
[No Name] - NVIM
test.sh + (/tmp) - NVIM
test.sh + (/tmp) - NVIM
After hours of adjusting my config, enabling and disabling plugins. It seems that cmp-buffer causes the issue.
With the default nvim-cmp
setup everything works fine without the buffer source. But as soon as buffer
is added to the sources, the [No Name] - NVIM
titles start to appear.
My nvim version:
NVIM v0.7.2
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by builduser
Features: +acl +iconv +tui
All plugins are on the latest version.
OS: Linux archlinux 5.19.1-arch2-1