glacambre / firenvim

Embed Neovim in Chrome, Firefox & others.
GNU General Public License v3.0
4.65k stars 143 forks source link

Noice giving warnings on startup #1534

Closed shauryagoel closed 1 year ago

shauryagoel commented 1 year ago

What I tried to do

As soon as firenvim starts on a text box

What happened

I get the following warning which takes a lot of screen space and takes few seconds to go away.

image Any way I can disable this warning at startup while using firenvim. Preferably some configuration inside the firenvim plugin config.

glacambre commented 1 year ago

Try following the instructions here :)

shauryagoel commented 1 year ago

I am adding the following config and I am still getting the same warning.

  config = function()
    vim.g.firenvim_config = {
      localSettings = {
        [".*"] = {
          -- takeover = "never",
          cmdline = "firenvim",
        },
      },
    }
  end,
glacambre commented 1 year ago

Yes, as described in the documentation you should use cmdline = "none".

shauryagoel commented 1 year ago

cmdline = "none" is also not working

glacambre commented 1 year ago

Mh, I can see why in the code, thanks for telling me. Out of curiosity, could you also try cmdline = "neovim" and let me know what the result it?

shauryagoel commented 1 year ago

Setting to cmdline = "neovim" has solved the issue for me. I am not getting those noice warnings now. Thank you for the help.

glacambre commented 1 year ago

Great, thanks for letting me know. This is rather confusing when considering https://github.com/glacambre/firenvim/issues/1442 , where it was found that noice re-enabled the external command line, but if it works as is I'll take the win :)

joshuadanpeterson commented 5 months ago

I was also getting this same error and one for ext_messages. Setting both cmdline and messages to "neovim" fixed the issue.