glacambre / firenvim

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

How can i send <C-s> to firenvim? #1469

Closed JuanZoran closed 1 year ago

JuanZoran commented 1 year ago

What I tried to do

for my neovim keymaps, I bind the "\" for ""

What happened

, when I use the to firenvim, I met the Save-file window from chrome

glacambre commented 1 year ago

This is weird, I can't reproduce your problem. The Google-Chrome binary from Google's own repositories allows Firenvim to catch <C-s>. What kind of keyboard layout are you using? Where does your Google Chrome come from? What Google Chrome version are you using?

JuanZoran commented 1 year ago

sorry about that, It is working now I just set the in chrome for Dark-Reader and I did't notice that

By the way, I am asking for How can I set default neovim window size

The Plugin is awesome, Thank you for doing this

glacambre commented 1 year ago
function! OnUIEnter(event) abort
  if 'Firenvim' ==# get(get(nvim_get_chan_info(a:event.chan), 'client', {}), 'name', '')
    set lines=20 columns=80
  endif
endfunction
autocmd UIEnter * call OnUIEnter(deepcopy(v:event))
JuanZoran commented 1 year ago

Thank you for that!