{"action":"created","issue":{"url":"https://api.github.com/repos/SirVer/ultisnips/issues/619","labels_url":"https://api.github.com/repos/SirVer/ultisnips/issues/619/labels{/name}","comments_url":"https://api.github.com/repos/SirVer/ultisnips/issues/619/comments","events_url":"https://api.github.com/repos/SirVer/ultisnips/issues/619/events","html_url":"https://github.com/SirVer/ultisnips/issues/619","id":121331327,"number":619,"title":"NeoVim + vim-plug custom snippets issue.","user":{"login":"sittim","id":8825037,"avatar_url":"https://avatars.githubusercontent.com/u/8825037?v=3","gravatar_id":"","url":"https://api.github.com/users/sittim","html_url":"https://github.com/sittim","followers_url":"https://api.github.com/users/sittim/followers","following_url":"https://api.github.com/users/sittim/following{/other_user}","gists_url":"https://api.github.com/users/sittim/gists{/gist_id}","starred_url":"https://api.github.com/users/sittim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sittim/subscriptions","organizations_url":"https://api.github.com/users/sittim/orgs","repos_url":"https://api.github.com/users/sittim/repos","events_url":"https://api.github.com/users/sittim/events{/privacy}","received_events_url":"https://api.github.com/users/sittim/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/SirVer/ultisnips/labels/pending_feedback","name":"pending_feedback","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-09T20:24:19Z","updated_at":"2015-12-10T14:52:51Z","closed_at":null,"body":"I am using NeoVim with vim-plug.   I have the following lines in the ~/.nvimrc file:\r\n\r\n```\r\nPlug 'SirVer/ultisnips'\r\nPlug 'honza/vim-snippets'\r\n```\r\n\r\nUltiSnips work great for the snippets in the `vim-snippts` directory, but executing `:UltiSnipsEdit` and adding a snippet produces no result.  `vim-plug` places the UltiSnips plugin into\r\n\r\n`~/.config/nvim/plugged/ultisnips`\r\n\r\nand the custom snippet files into:\r\n\r\n`~/.config/nvim/UltiSnips`\r\n\r\nso if I edited a c++ file and typed executed `UltiSnipsEdit`, and added a snipped, it shows up as `~/.config/nvim/UltiSnips/cpp.snippet`\r\n\r\nBut if I take this file and copy it from `~/.config/nvim/UltiSnips/cpp.snippet` to ~/.nvim/UltiSnips/cpp.snippet` then the custom snippet works.\r\n\r\nWould you have a recommendation on how to have the `UltiSnipsEdit` command and have the nvim use the same directory for custom snippet file?"},"comment":{"url":"https://api.github.com/repos/SirVer/ultisnips/issues/comments/163648268","html_url":"https://github.com/SirVer/ultisnips/issues/619#issuecomment-163648268","issue_url":"https://api.github.com/repos/SirVer/ultisnips/issues/619","id":163648268,"user":{"login":"sittim","id":8825037,"avatar_url":"https://avatars.githubusercontent.com/u/8825037?v=3","gravatar_id":"","url":"https://api.github.com/users/sittim","html_url":"https://github.com/sittim","followers_url":"https://api.github.com/users/sittim/followers","following_url":"https://api.github.com/users/sittim/following{/other_user}","gists_url":"https://api.github.com/users/sittim/gists{/gist_id}","starred_url":"https://api.github.com/users/sittim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sittim/subscriptions","organizations_url":"https://api.github.com/users/sittim/orgs","repos_url":"https://api.github.com/users/sittim/repos","events_url":"https://api.github.com/users/sittim/events{/privacy}","received_events_url":"https://api.github.com/users/sittim/received_events","type":"User","site_admin":false},"created_at":"2015-12-10T14:52:51Z","updated_at":"2015-12-10T14:52:51Z","body":"This solution works OK, The following entry:\r\n\r\n`let g:UltiSnipsSnippetsDir=\"~/.nvim/UltiSnips\"` \r\n\r\nuses and edits (via UltiSnipsEdit command) the snippets in the `~/.nvim/UltiSnips` directory.  This is OK, I can now comfortably work with snippets, ideally, it would be nice to keep everything in the same place, that is in the nvim confiration directory, which is at`~/.config/nvim/UltiSnips`, but the following entry produces no result:\r\n`let g:UltiSnipsSnippetsDir=\"~/.config/nvim/UltiSnips\"` \r\n"}}