3 ms·
While Oni is still very young, it looks like one of the more promising Neovim frontends, and the development is progressing quite fast! If you are one of those
by Tehnix 9y ago
While Oni is still very young, it looks like one of the more promising Neovim frontends, and the development is progressing quite fast!
If you are one of those types that often switch between editors, like me, then you might want to retain some of the muscle memory you've built up in stuff like Atom/VSCode/Whatever.
I started creating a layer[0] for SpaceNeovim to replicate some of the common keybindings, such as Cmd+s for save, Cmd+w for closing tabs, Cmd+[1-9] for switching tabs etc. If anyone is interested in getting this, without going full in with SpaceNeovim, they can extract it from [1], which currently handles both VimR and Oni (different key for CMD), but you could simplify it to not use exe if you wanted to.
It requires that you load your init.vim, so "oni.loadInitVim": true needs to be set in the Oni config.
Another thing, you can quickly add support for an LSP in the Oni config with just,
"language.haskell.languageServer.command": "stack",
"language.haskell.languageServer.arguments": ["exec", "--", "hie", "--lsp"],
"language.haskell.languageServer.rootFiles": [".git"],
"language.haskell.languageServer.configuration": {},
which adds support for the Haskell LSP, hie, behind stack.
[0] https://github.com/Tehnix/spaceneovim-layers/tree/master/layers/+gui/ide https://github.com/Tehnix/spaceneovim-layers/tree/master/lay...
[1] https://github.com/Tehnix/spaceneovim-layers/blob/master/layers/%2Bgui/ide/config.vim#L49 https://github.com/Tehnix/spaceneovim-layers/blob/master/lay...