rogual / neovim-dot-app

Mac OS X GUI for Neovim
1.13k stars 62 forks source link

Improved loading sequence #222

Open mikew opened 8 years ago

mikew commented 8 years ago

This does a few things:

  1. Launches neovim with -u Neovim.app/Resources/nvimrc, unless specified already by the command line
  2. Adds Neovim.app/Resources/runtime/after to the runtimepath so that ...
  3. ginit.vim is sourced

I tried doing mVim->vim_command("so ~/.config/nvim/init.vim");, but it happens too late in the startup and some autocmds weren't working.

rogual commented 8 years ago

@kopischke is right about the paths.

Also, what problem is this solving? Is it just to load ginit.vim? And why is -u nvimrc necessary?

mikew commented 8 years ago

It's to stop reloading $MYVIMRC, and to load ginit.vim yeah. After further testing, it seems -u nvimrc is not needed, I was just using it to get 100% control of the startup sequence. But the runtime/after/ stuff is still needed to source ginit.vim at the right time.