Comments (8)
I get it. You must use following setting.
let g:neocomplete#sources#omni#input_patterns.go = '[^.[:digit:] *\t]\.\w*'
from neocomplete.vim.
I think it is omnifunc problem.
You should use g:neocomplete#force_omni_input_patterns
instead of g:neocomplete#sources#omni#input_patterns
.
if !exists('g:neocomplete#force_omni_input_patterns')
let g:neocomplete#force_omni_input_patterns = {}
endif
let g:neocomplete#force_omni_input_patterns.go = '[^.[:digit:] *\t]\.'
from neocomplete.vim.
Ok. Now it seems to work in most cases. There are, however, 2 small problems:
- if I have a struct with fields that start with uppercase letters and I type its lowercase equivalent (e.g., in the example above, I type x.a), the plugin shows nothing; isn't it supposed to ignore case by default?
- if I have a method declaration as in
func (a AStruct) someMethod()
and I then type
a.
, it doesn't find any completion; however, if I replace the "a" with something bigger, as in
func (aStruct AStruct) someMethod()
it works. Strange behaviour, since it does work in the previous example, with the variable "x" (which also has only one letter)
Sorry for bottering you with what apparently is a language specific problem. But I'm not sure it is omnifunc's fault, since it works as expected with YouCompleteMe, even if this plugin has no knowledge of the Go language. Maybe I'm missing something in the configuration...
from neocomplete.vim.
if I have a struct with fields that start with uppercase letters and I type its lowercase equivalent (e.g., in the example above, I type x.a), the plugin shows nothing; isn't it supposed to ignore case by default?
I think it is omnifunc problem... I cannot fix it.
from neocomplete.vim.
if I have a method declaration as in func (a AStruct) someMethod() and I then type a. , it doesn't find any completion; however, if I replace the "a" with something bigger, as in func (aStruct AStruct) someMethod() it works. Strange behaviour, since it does work in the previous example, with the variable "x" (which also has only one letter)
OK. I will check it. But your information is too few.
You must show me in detail(test file and screenshots and reproduction method).
from neocomplete.vim.
if I have a method declaration as in func (a AStruct) someMethod() and I then type a. , it doesn't find any completion; however, if I replace the "a" with something bigger, as in func (aStruct AStruct) someMethod() it works. Strange behaviour, since it does work in the previous example, with the variable "x" (which also has only one letter)
I checked it and it works.
from neocomplete.vim.
In neocomplete, it supports go omni patterns by default.
from neocomplete.vim.
It works! Thank you!
from neocomplete.vim.
Related Issues (20)
- Vim freezes if the completion candidates are very long HOT 5
- Third party libraries; HOT 3
- Python completion - Feature request HOT 4
- neocomplete.vim with problem of 100% cpu usage HOT 2
- neocomplete development is over HOT 3
- problem when editing tex file HOT 3
- "vim" is not found HOT 1
- Default CSS and SCSS Omni completion input patterns allow too-short strings HOT 5
- Onmi Window Doesn't Appear for PHP While Typing HOT 2
- SCSS keyword patterns include final colon in strings
- Sass variable ctags that begin with dollar signs aren't included in completion popups HOT 5
- New feature request HOT 1
- brew install vim --with-luajit cant work HOT 1
- jedi-vim omni completions not working sometimes HOT 1
- when I press esc Press ENTER or type command to continue HOT 1
- "Extract the files and put them in your Vim directory" which files? HOT 1
- E: Package 'vim-gnome' has no installation candidate HOT 1
- lua array index in vim now starts with 1 starting with patch-8.2.1066 HOT 1
- Asking for username and password HOT 3
- Use register other than the unnamed one HOT 8
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 neocomplete.vim.