Comments (6)
👍 I use neosnippet.
from vim-go.
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 ?
from vim-go.
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.
from vim-go.
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?
from vim-go.
Thanks for this. I'm trying it and will get back to you.
from vim-go.
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"
from vim-go.
Related Issues (20)
- unknown directive: toolchain HOT 8
- Lua module not found for config of vim-go. Please use a `config()` function instead HOT 1
- Vim-Go not working on Raspberry Pi HOT 19
- Package metadata not found for file HOT 8
- debugger stops in assembler code file HOT 9
- Using code completion breaks navigation for arguments placeholders HOT 6
- mingw: GoDef (and various other commands) don't work, potentially due to pathing issue HOT 7
- Vim jumps to end of file on save HOT 2
- GoSameIds end position miscalculated for identifiers at the end of line
- GoExtract sends incorrect location to LSP HOT 1
- Error detected while processing Buf WritePre HOT 1
- Error detected while processing function <SNR>129_debugasync: E117 Unknown function: state ... HOT 1
- Typecheck errors when calling a function in another go file in the same package. HOT 9
- Godef has been Invalid in code with "import C" HOT 4
- Merged #3617 breaks UltiSnips placeholder mechanism HOT 3
- Cannot install or make it work with NeoVim gives error E492: Not an editor command :GoDef HOT 2
- Auto imports not working HOT 1
- Error in identifier/syntax prevents autocommands to be executed HOT 7
- Support quoting arguments to :GoImpl HOT 3
- Development: `make lint` always fails using GNU grep 3.8 or later HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vim-go.