Oni: font size won't change?

Created on 4 Apr 2018  路  4Comments  路  Source: onivim/oni

2018-04-04 15_03_52-config tsx _appdata_roaming_oni - oni
This is followup to my twitter post - https://twitter.com/oni_vim/status/981553549447331841

I am not able to change the font size

I followed the configurations page, and used the example and modified to my needs.

The following is my config.tsx in my %APPDATA%/oni on Windows 7


export const activate = (oni: Oni.Plugin.Api) => {
// Put your customizations here!
}

module.exports = {
activate,
// change configuration values here:
"ui.fontSize": "16px",
"editor.fontSize": "16px",
"editor.completions.enabled": true
}

bug daily-editor-blocker

All 4 comments

Hello and welcome to the Oni repository! Thanks for opening your first issue here. To help us out, please make sure to include as much detail as possible - including screenshots and logs, if possible.

Hi @rjarow , thanks for posting your config!

One thing to try might be switching the config to this:

export const activate = (oni) => {
// Put your customizations here!
}

export const configuration = {
// change configuration values here:
"ui.fontSize": "16px",
"editor.fontSize": "16px",
"editor.completions.enabled": true
}

Then try saving the config (:w).

I see two problems with the above config:

  • The Oni.Plugin.Api typing is missing.
  • TypeScript has a problem with the module.exports it seems.

If it still doesn't work, can you please check and see if there is a config.js generated in the %APPDATA%/oni? If so, can you share that?

One more thing to try - you could try deleting both config.tsx and config.js from the %APPDATA%/oni folder, and then run Configuration: Edit user config from the command palette - that will re-generate it (and then modify the fontSize there).

Sorry about issues here - let me know how those attempts go!

I deleted my config.tsx, and did as you suggested. It regenerated and then I added my options to the bottom and that worked :)

Thanks so much!

EDIT: Grammar in case someone stumbles upon this in the future.

Awesome! Glad it finally worked @rjarow 馃憤

Was this page helpful?
0 / 5 - 0 ratings