hrsh7th / cmp-cmdline

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

Ignore :w !sudo #109

Open dhnam opened 6 months ago

dhnam commented 6 months ago

I forgot to use sudo to edit file, I searched for how to save in super user permission, and told to use :w !sudo tee %.

I tried, and when I type '!' after :w, neovim stopped.

Guess cmp-cmdline tries to load autocomplete of ! after :w, even though I use default setting.

theSprog commented 5 months ago

Yes, I also encountered the problem you mentioned, but when I was about to type r !ls, neovim froze after I typed !.

But one thing I need to add is that neovim is not stopped, it is just stuck in a long processing logic. After I waited for about a few minutes, neovim still successfully read the contents of ls. , I tried disabling cmp-cmdline and the bug disappeared, so I think it should be a problem with cmp-cmdline

theSprog commented 5 months ago

I opened another issue to discuss this issue. #112

mau-mauricelim commented 1 month ago

I have the same issue with :w ! and :r !