Skip to content

Instantly share code, notes, and snippets.

@dinhmai74
Created July 20, 2018 14:34
Show Gist options
  • Save dinhmai74/9ba1b460fe6e18df752183bb8787ed7f to your computer and use it in GitHub Desktop.
Save dinhmai74/9ba1b460fe6e18df752183bb8787ed7f to your computer and use it in GitHub Desktop.
onivim setting
const activate = (oni) => {
// access the Oni plugin API here
// for example, unbind the default `<c-p>` action:
// or bind a new action:
oni.input.bind(["<tab>"], "contextMenu.next");
oni.input.bind(["<s-tab>"], "contextMenu.previous");
oni.input.bind(["<tab>"], "menu.next");
oni.input.bind(["<s-tab>"], "menu.previous");
oni.input.bind(["<c-y>"], "explorer.create.file");
};
module.exports = {
activate,
// change configuration values here:
"editor.completions.mode": 'native',
"oni.hideMenu" : "hidden", // Hide top bar menu
"oni.useDefaultConfig" : false, // Do not load Oni's init.vim
"oni.loadInitVim": true,
"commandline.mode" : false, // Do not override commandline UI
"ui.colorscheme" : "n/a", // Load init.vim colorscheme, remove this line if wants Oni's default
"autoClosingPairs.enabled" : false, // disable autoclosing pairs
"editor.fontSize": "16px",
"editor.fontFamily": "Fira Code Light",
"editor.completions.enabled": true,
"tabs.mode" : "native", // Use vim's tabline, need completely quit Oni and restart a few times
"statusbar.enabled" : false, // use vim's default statusline
"sidebar.enabled" : false, // sidebar ui is gone
"sidebar.default.open" : false, // the side bar collapse
"learning.enabled" : false, // Turn off learning pane
"achievements.enabled" : false, // Turn off achievements tracking / UX
"editor.typingPrediction" : false, // Wait for vim's confirmed typed characters, avoid edge cases
"editor.textMateHighlighting.enabled" : false, // Use vim syntax highlighting
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment