glacambre / firenvim

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

Odd problem. #1618

Closed LeaWron closed 1 month ago

LeaWron commented 1 month ago

Add-on basically works, but my style in browser isn't same as in terminal.

What I tried to do

TroubleShooting Guide.

page.ts:282 Unhandled page request: {args: Array(1), funcName: Array(1)}args: [0]0: 0length: 1[[Prototype]]: Array(0)funcName: Array(1)0: "setLastFocusedContentScript"length: 1[[Prototype]]: Array(0)[[Prototype]]: Object @ page.ts:282 onMessage @ browser-polyfill.js:1


### What happened
It should be like:
![normal nvim](https://github.com/glacambre/firenvim/assets/152857271/75a13517-38d8-47e0-9569-631c0d48fa0d)

But it is:
![web ](https://github.com/glacambre/firenvim/assets/152857271/c373be40-4cc2-42b7-9b24-9ce3783651de)

I tried in firefox but it doesn't matter.
glacambre commented 1 month ago

Do :echo $MYVIMRC show the same result in neovim in your terminal and in firenvim?

LeaWron commented 1 month ago

Do :echo $MYVIMRC show the same result in neovim in your terminal and in firenvim?

Yes, "C:\Users\Onlw\AppData\Local\nvim\init.lua"

glacambre commented 1 month ago

Does :colorscheme also give the same result?

LeaWron commented 1 month ago

Does :colorscheme also give the same result?

yes

glacambre commented 1 month ago

Cool. What about :echo &bg and :echo &termguicolors?

LeaWron commented 1 month ago

Cool. What about :echo &bg and :echo &termguicolors?

same. "light" and "1"

glacambre commented 1 month ago

Okay, thanks. That's surprising, I would have expected any of these options to be different so far... Could you give me the result of :verbose hi Normal, both from Neovim and from Firenvim?

LeaWron commented 1 month ago

Okay, thanks. That's surprising, I would have expected any of these options to be different so far... Could you give me the result of :verbose hi Normal, both from Neovim and from Firenvim?

I find them same in command line: nvim: image

firenvim: image

glacambre commented 1 month ago

These are the same colors - were you complaining about having different fonts instead of different colorschemes?

LeaWron commented 1 month ago

These are the same colors - were you complaining about having different fonts instead of different colorschemes?

Sry, I didn't make it clear. It's fonts' color confused me most.

glacambre commented 1 month ago

To change the font used by Firenvim, you need to use :set guifont.