Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Snippet support for neosnippet #31

Closed
spf13 opened this issue Mar 31, 2014 · 6 comments
Closed

Snippet support for neosnippet #31

spf13 opened this issue Mar 31, 2014 · 6 comments
Labels

Comments

@spf13
Copy link

spf13 commented Mar 31, 2014

It would be great to add support for neosnippet as well.

@geetarista
Copy link

👍 I use neosnippet.

@fatih
Copy link
Owner

fatih commented Mar 31, 2014

I don't use neosnippet, let me look how that works :). Do you guys have some initial sensible settings that I can just use for initial testing ?

@fatih fatih added the feature label Mar 31, 2014
@spf13
Copy link
Author

spf13 commented Mar 31, 2014

I use and maintain spf13-vim. I've just switched it over to vim-go when go is enabled.

If you look at this https://github.com/spf13/spf13-vim/blob/3.0/.vimrc#L854
It should give you the settings I (and most others) use.

@fatih fatih closed this as completed in c135257 Apr 1, 2014
@fatih
Copy link
Owner

fatih commented Apr 1, 2014

I've added a customizable snippet engine support. By default it's using ultisnips, to change just use this settings:

let g:go_snippet_engine = "neosnippet"

Can you guys try this and give a feedback?

@spf13
Copy link
Author

spf13 commented Apr 1, 2014

Thanks for this. I'm trying it and will get back to you.

@rafi
Copy link

rafi commented Sep 1, 2014

Thanks, although I set let g:go_loaded_gosnippets = 1 to disable ftplugin/go/gosnippet.vim altogether, otherwise my snippets directory will be overwritten. Here's my setup:

" neosnippet
let g:neosnippet#enable_snipmate_compatibility = 0
let g:neosnippet#disable_runtime_snippets = { '_': 1 }
let g:neosnippet#snippets_directory =
    \$XDG_CONFIG_HOME.'/vim/snippets/rafi,'
    \.$XDG_CONFIG_HOME.'/vim/snippets/shougo/neosnippets,'
    \.$XDG_CONFIG_HOME.'/vim/bundle/go/gosnippets/snippets'

" vim-go, do not mess with my neosnippet config!
let g:go_disable_autoinstall = 1
let g:go_loaded_gosnippets = 1
let g:go_snippet_engine = "neosnippet"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants