glacambre / firenvim

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

Unable to disable Noice #1560

Open 0x4a61636f62 opened 1 year ago

0x4a61636f62 commented 1 year ago

What I tried to do

I checked previous issues suggesting to add cmdline = "none".

1534

1536

globals.lua:

if vim.g.started_by_firenvim == true then
vim.g.firenvim_config = {
    globalSettings = { alt = "all" },
    localSettings = {
        [".*"] = {
            cmdline  = "none",
            --content  = "text",
            --priority = 0,
            selector = "textarea",
            takeover = "never"
        }
    }
}
end

What happened

The Noice warning messages appear and the Neovim command line is not visible.

Screenshot from 2023-09-01 19-08-13

glacambre commented 1 year ago

Hi, thanks for the report. It seems that this problem was already reported & worked around in #1534 , but I failed to implement a fix, I'll do it soon.

In the meantime, it seems you can use cmdline = "neovim".

0x4a61636f62 commented 1 year ago

Thank you @glacambre !

PlexSheep commented 8 months ago

If you use lazy, you can try something like this to disable noice:

  {
    "folke/noice.nvim",
    enabled = not vim.g.started_by_firenvim,
    ...
}

Other pluginmanagers can probably do something similar.