Closed jsit closed 5 years ago
It depends on g:neocomplete#keyword_patterns
.
You should set it properly.
This is feature of neocomplete.vim. I don't change the behavior.
Note: deoplete does not have the problem. I recommend for you to use deoplete.
Note: Active development on neocomplete.vim has stopped. The only future changes will be bug fixes.
It is not bug.
I recommend for you to use deoplete.
I don't like the number of requirements that deoplete has -- it requires both two additional Vim plugins and a python package. neocomplete only requires that Vim be built with Lua support.
If so, you need to use neocomplete. But I don't change the behavior.
Problems summary
If your tags file has some Sass variable tags that start with a dollar sign, those tags won't show up in neocomplete's autocompletion.
Expected
That Sass variable tags starting with dollar signs will show up in neocomplete's autocompletion.
Environment Information
Provide a minimal .vimrc with less than 50 lines (Required!)
The reproduce ways from Vim starting (Required!)
ft=scss
.$marg
and see that$margins-vertical
doesn't appear in the autocomplete popup.A lot of
.ctags
config files on GitHub exclude the dollar sign from the matching string in Sass variables. You'll find a lot of lines like this:Note that the initial dollar sign is outside of the parentheses, which means it would not be included in the string in the tags file; you'd get something like this:
This configuration works fine with neocomplete, because neocomplete will work for this tags file, but wouldn't work if the dollar sign were present.
However, this has the undesirable side-effect that variable names will be suggested to the user even if the user isn't entering a variable name.
If the user is just trying to write the
margin
CSS property, for instance, they will be recommendedmargins-vertical
, even though it never makes sense to type that string without the dollar sign.As such, "fixing" this problem by adding a dollar sign to the scss keyword patterns dictionary will mean that a lot of people's existing
.ctags
configs will no longer complete variable names with neocomplete, but a small change to their config will mean that theirtags
files will in fact work much better with neocomplete moving forward.