hrsh7th / cmp-cmdline

nvim-cmp source for vim's cmdline
MIT License
550 stars 42 forks source link

command :pwd does not print the working directory #35

Open wanghuibin0 opened 2 years ago

wanghuibin0 commented 2 years ago

When I enable this plugin and call :pwd, it does not print the working directory but print the current file name.

On the other hand, when I disable this plugin, this issue goes away. So I think this plugin may cause this issue.

image image

gegoune commented 2 years ago

Try with some minimal config, as it works as expected for me, so perhaps something else in your configuration interacts.

wanghuibin0 commented 2 years ago

Try with some minimal config, as it works as expected for me, so perhaps something else in your configuration interacts.

After trying with some minimal configs, I have found two points. They are: image

  1. When I comment out {name='cmdline'}, the issue goes away. image
  2. When I comment out set shortmess, the issue goes away.

I think something in cmp-cmdline conflicts with the shortmess option. But I don't know what it is. Do you have any idea?