Comments (11)
You can now set font sizes with :set guifont=monospace:h10
. Read :h E244
and 135c77c in order to know more and feel free to ask questions if things don't go as you expect them to :)
Edit: I'll try to push a new release in the coming week.
from firenvim.
Currently firenvim uses the browser's default font size. I have a branch on my computer that lets users set their preferred fonts with guifont
(it's a branch that will fix #102 too) but I'm experiencing a small issue with automatically resizing the frame when the font size changes. It should be ready soon though.
from firenvim.
I released a new version for both chrome and firefox. Upgrade to firenvim 0.1.11 and use :h guifont
to be able to change your font and its size.
from firenvim.
Adoring this extension, but the font for me is absolutely tiny. Would love to see this fixed soon.
from firenvim.
@justinmk is there a standard way to define font sizes? From reading :h E244
I'm unsure whether having a colon-separated list is specific to windows/osx's GVIM or if every GUI should support that.
from firenvim.
is there a standard way to define font sizes? From reading
:h E244
I'm unsure whether having a colon-separated list is specific to windows/osx's GVIM or if every GUI should support that.
@glacambre Vim never expected GUI extensions, so this is untrodden territory :)
I would suggest conforming to the colon convention unless there's some reason not to. Unfortunately the option_set
UI event doesn't parse the 'guifont' setting, so each UI has to parse the value...
from firenvim.
@glacambre This works if I set guifont inside an existing firenvim text area, but it does not work if I put the line in my vimrc; firenvim will still start up with a tiny font. Any idea what is going on?
Version info:
- NVIM v0.4.2
- Firenvim 0.1.11 (Chrome)
PS: This extension is amazing. I'm looking forward to using it everywhere! Keep up the great work.
from firenvim.
@Asheq What does set guifont
print right after starting neovim? Does this issue still happen if you empty your init.vim
except for the guifont
line?
from firenvim.
It prints guifont=Iosevka:h12
I changed my init.vim to contain nothing but the following:
set guifont=Iosevka:h12
call plug#begin('~/.vim/plugged')
set guifont=Iosevka:h12
Plug 'glacambre/firenvim'
set guifont=Iosevka:h12
call plug#end() " Automatically executes 'filetype plugin indent on' and 'syntax enable'.
set guifont=Iosevka:h12
As you can see, I tried setting guifont in various locations, and none of them work. Only when I type it in manually in the command-line after the firenvim instance starts does it work:
from firenvim.
@Asheq You need to actually use the code that is in the README for setting the configuration on startup. You need to set the values in function that gets fired on the UIEnter
event and checks for Firenvim.
function! OnUIEnter(event)
let l:ui = nvim_get_chan_info(a:event.chan)
if has_key(l:ui, 'client') && has_key(l:ui.client, 'name')
if l:ui.client.name ==# 'Firenvim'
set guifont=Iosevka:h12
endif
endif
endfunction
autocmd QueInit UIEnter * call OnUIEnter(deepcopy(v:event))
That should work (at the end of your init.vim
somewhere after plugins are loaded.
from firenvim.
Thanks @alerque. That works for me. Based on the fact that @glacambre created #214, it appears that he agrees that guifont should not have to be set in an autocommand, at least in the long-term. For now, I'm happy with this solution!
from firenvim.
Related Issues (20)
- "Unexpected output. Run nvim --headless and ensure it prints nothing." HOT 5
- Completion menu not correctly cleared, leading to screen corruption. HOT 10
- Is it possible to support firefox mobile? HOT 4
- Add explanation on how to use it with snap / flatpak HOT 1
- Firenvim has started reporting "neovim is not responding" HOT 8
- [Bug] `nvim.exe` process is not killed when closing `Firenvim` `Neovim` instance HOT 4
- Review/update recovery instructions in wiki HOT 1
- [Feature Request] pass eval_js result to lua functions HOT 2
- "TypeError: nvim.call_atomic is not a function" on Nvim HEAD HOT 3
- [feature]: extend `selector`'s behavior to choose elements HOT 2
- Empty lines are sometimes doubled when editing text box in Firefox
- Neovim plugin version (0.2.15) and browser addon version (0.2.16) do not match. HOT 10
- Is there a way to have Google Apps Script autocomplete? HOT 4
- Add table of content to README HOT 1
- Neovim plugin and addon versions do not match HOT 13
- Firenvim not working at all on OSX
- "Neovim died without answering" in Chrome HOT 2
- Odd problem. HOT 11
- Expand textarea as more lines are typed HOT 9
- firenvim temp files restored when nvim opened HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from firenvim.