Check if editor is Neovim when setting snippet_dir

This commit is contained in:
Michael Reed 2014-12-06 00:41:13 -05:00
parent b26f2c97b7
commit c050d68e5a

View File

@ -578,6 +578,9 @@ class SnippetManager(object):
if platform.system() == "Windows":
snippet_dir = os.path.join(_vim.eval("$HOME"),
"vimfiles", "UltiSnips")
elif _vim.eval("has('nvim')") == "1":
snippet_dir = os.path.join(_vim.eval("$HOME"),
".nvim", "UltiSnips")
else:
snippet_dir = os.path.join(_vim.eval("$HOME"),
".vim", "UltiSnips")