Closed gibiansky closed 9 years ago
Based on the fact that stack.yaml
mentions xdg-basedir
, my guess is that nvim-hs
is using getUserConfigDir
from `System.Environment.XDG.BaseDir
$ stack exec ghci
GHCi, version 7.10.1: http://www.haskell.org/ghc/ :? for help
Prelude> import System.Environment.XDG.BaseDir
Prelude System.Environment.XDG.BaseDir> getUserConfigDir "nvim"
"/Users/silver/.config/nvim"
So on my system at least (and I guess on OSX in general?) it is ~/.config/nvim/nvim.hs
.
I'm not yet sure this is true but this could be in the docs.
Wait, I guess it is in the docs. Hmm. I just assumed it only applied on systems where $XDG*
was actually defied. Oops.
It should probably be reflected in the docs, that ~/.config/nvim
is the default location if the environment variable is not set. A link to http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html doesn't hurt either.
From the docs:
$XDG_CONFIG_HOME
does not necessarily exist on OS X. What's the right place to putnvim.hs
on Mac? How can we customize the location of this file?