Skip to content

Instantly share code, notes, and snippets.

@mattosborn
Created October 18, 2018 03:10
Show Gist options
  • Save mattosborn/994c828dfe76c40e4ced32af3626c637 to your computer and use it in GitHub Desktop.
Save mattosborn/994c828dfe76c40e4ced32af3626c637 to your computer and use it in GitHub Desktop.
onivim config
import * as React from "react";
import * as Oni from "oni-api";
export const activate = (oni: Oni.Plugin.Api) => {
console.log("config activated");
// Input
//
// Add input bindings here:
//
oni.input.bind("<c-enter>", () => console.log("Control+Enter was pressed"));
//
// Or remove the default bindings here by uncommenting the below line:
//
// oni.input.unbind("<c-p>")
};
export const deactivate = (oni: Oni.Plugin.Api) => {
console.log("config deactivated");
};
export const configuration = {
//add custom config here, such as
"ui.colorscheme": "solarized8_light",
//"oni.useDefaultConfig": true,
//"oni.bookmarks": ["~/Documents"],
//"oni.loadInitVim": false,
//"editor.fontSize": "12px",
//"editor.fontFamily": "Monaco",
// UI customizations
"ui.animations.enabled": true,
"ui.fontSmoothing": "auto",
"tabs.mode": "tabs",
"oni.hideMenu": true,
"sidebar.enabled": false,
"sidebar.default.open": false,
"oni.plugins.prettier": {
"settings": {
// "semi": false,
// "tabWidth": 2,
// "useTabs": false,
// "singleQuote": false,
"trailingComma": "es5",
// "bracketSpacing": true,
// "jsxBracketSameLine": false,
// "arrowParens": "avoid",
// "printWidth": 80
},
formatOnSave: false,
enabled: false
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment