Closed eisukeesaki closed 11 months ago
Hi, thanks for opening this issue. Let's do things one step at a time first. We'll begin with stopping Firenvim from running in your default config. If you open the browserAction (the Firenvim icon next to your URLbar), you'll probably see error messages about vim.g.firenvim_config not existing. If you try to replace your firenvim config in ~/.config/nvim/init.lua with
if vim.g.started_by_firenvim == true then
vim.g.firenvim_config = {
localSettings = {
[".*"] = {
takeover = "never"
}
}
}
end
The error message should disappear and firenvim should stop appearing by default. Can you confirm that this works?
I did as you said, and the desired behavior (disable takeover
by default) was achieved. Are there any downsides to overwriting the entire vim.g.firenvim_config
? I tried to see what is inside it before it is overwritten, but the result of print()
was not printed when I manually activated the Neovim frame in the browser.
if vim.g.started_by_firenvim == true then
print(vim.g.firenvim_config)
vim.g.firenvim_config = {
localSettings = {
[".*"] = {
takeover = "never"
}
}
}
end
Apologies if I confused you. I just meant to let you know that: after following what you said, Firenvim no longer shows up automatically.
Are there any downsides to overwriting the entire vim.g.firenvim_config?
There are no downsides, vim.g.firenvim_config
isn't defined by default :)
I just meant to let you know that: after following what you said, Firenvim no longer shows up automatically.
Great! Now, if you are still interested in having a Firenvim-only config, here's how to do it:
NVIM_APPNAME=firenvim nvim
and in nvim run :call firenvim#install()
That should be it! The neovim you run in your browser should be using your config defined in ~/.config/firenvim/init.lua .
Closing this issue because it has been awaiting a response from its author for more than a month. Please provide the requested information and this issue will be re-opened.
runtime environment
Kernel Version: Linux 6.4.9-arch1-1 Neovim Version: NVIM v0.9.1 Browser Version: 116.0.2 (64-bit) Browser Addon Version: 0.2.15 Neovim Plugin Version: 0.2.15
What I want to achieve
Set the
takeover
setting tonever
) using a Firenvim-specific config (in~/.config/firenvim/init.lua
) isolated from~/.config/nvim
.What I have tried
export NVIM_APPNAME="nvim"
in~/.bashrc
glacambre/firenvim
Neovim plugin using Packer:echo g:started_by_firenvim
=true
~/.config/nvim/init.lua
, do:Summary
The Neovim frame is still automatically shown in the browser despite the attempt to alter that behavior.
What am I doing wrong?