oni icon indicating copy to clipboard operation
oni copied to clipboard

How to load my init.vim?

Open omarabid opened this issue 8 years ago • 12 comments

The documentation is really lacking in this one important area. Obviously, if I'm picking oni it is because I want to import my init.vim

But I have no idea how to do that? (MacOS el capitain)

omarabid avatar Mar 26 '18 13:03 omarabid

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.

oni-bot avatar Mar 26 '18 13:03 oni-bot

@omarabid you should set the following option loadInitVim: true here's a link to the section of the docs with the config details

akinsho avatar Mar 26 '18 14:03 akinsho

@Akin909 Yes, I already did that.

omarabid avatar Mar 26 '18 14:03 omarabid

I also copied init.vim to the .oni folder just in case.

omarabid avatar Mar 26 '18 14:03 omarabid

Cool 👍 is it working as expected? (PS shouldn't have to copy the init.vim to the .oni dir)

akinsho avatar Mar 26 '18 14:03 akinsho

No. I did that before opening this issue. So maybe there is a problem in my setup?

omarabid avatar Mar 26 '18 19:03 omarabid

Hmm, it would be helpful to have the logs from the developer tools:

  • Command+Shift+P -> Open DevTools
  • Go back to Oni
  • Command+Shift+P -> Reload Oni And if you could share the output, that would be helpful - we can see how nvim is being started, and then narrow down from there.

bryphe avatar Mar 26 '18 20:03 bryphe

I'm getting the same problem. I've also noticed that trying to do Oni > Preferences > Edit Neovim Config opens up an empty file with the name "true".

Here's the console output from devtools when starting up oni:

[redacted because it was long and irrelevant]

antistic avatar Apr 14 '18 13:04 antistic

What is the line you have in your config.tsx @notantonia ?

The "oni.loadInitVim" does accept both a boolean and a string, its possible its getting confused and treating the bool of true as the string - "true" and attempting to open a file called true.

CrossR avatar Apr 14 '18 13:04 CrossR

@CrossR Ah I feel silly now, that was exactly my problem! Perhaps there should be a warning for people like me maybe? (But that's not related to this issue, so probably off topic).

antistic avatar Apr 14 '18 17:04 antistic

We've spoken about it a few times @notantonia , but I couldn't find a specific ticket for it so I've raised one here : #2094.

CrossR avatar Apr 14 '18 17:04 CrossR

Seems like the case was solved.

badosu avatar May 21 '18 05:05 badosu