Check if editor is Neovim when setting snippet_dir
This commit is contained in:
parent
b26f2c97b7
commit
c050d68e5a
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user