prabirshrestha / asyncomplete-tags.vim Goto Github PK
View Code? Open in Web Editor NEWprovides tag auto completion for asyncomplete.vim via vim tagfiles
provides tag auto completion for asyncomplete.vim via vim tagfiles
I use asyncomplete.vim
with this plugin as readme mentioned, with tags of 3,2MB, vim got stuck when I try to surf through candidate under /
.
I try using this plugin.
Then, check logfile. Logging to current tagfile and no-file tagfile name.
tagfiles () seems to be returning the position where the tag file is or is supposed to be defined
(I will challenge the fix to check for the existence of files and I want to PR.)
(create PR try)
asyncomplete-buffer adds [buffer]
to the end of menu items; would be nice if the tags plugin would add the name of the tag type to the end of the menu item in a similar fashion.
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
This repository currently has no open or pending branches.
None detected
The grep
that comes with macOS is grep (BSD grep) 2.5.1-FreeBSD
, which doesn't contain the -P
flag, so searching tags fails.
To fix this I installed the Homebrew grep
, which installs as ggrep
, and then updated the lines that contain grep
in tags.vim
to ggrep
. This seems to solve the issue for me (although triggers that contain hyphens are having problems).
Alternatively you could not use Perl grep in the plugin.
I have installed few extensions. But not all of them are visible in popup.
I`am using Vim 8.0 1-1476 with +python +python3 etc.
Tag file is named tags and it is in project directory.
\ 'name': 'buffer',
\ 'priority': 4,
\ 'whitelist': ['*'],
\ 'blacklist': ['go'],
\ 'completor': function('asyncomplete#sources#buffer#completor'),
\ }))
au User asyncomplete_setup call asyncomplete#register_source(asyncomplete#sources#file#get_source_options({
\ 'name': 'file',
\ 'whitelist': ['*'],
\ 'priority': 10,
\ 'completor': function('asyncomplete#sources#file#completor')
\ }))
call asyncomplete#register_source(asyncomplete#sources#omni#get_source_options({
\ 'name': 'omni',
\ 'priority': 3,
\ 'whitelist': ['*'],
\ 'blacklist': ['html'],
\ 'completor': function('asyncomplete#sources#omni#completor')
\ }))
if has('python3')
" let g:UltiSnipsExpandTrigger="<c-e>"
call asyncomplete#register_source(asyncomplete#sources#ultisnips#get_source_options({
\ 'name': 'ultisnips',
\ 'priority': 2,
\ 'whitelist': ['*'],
\ 'completor': function('asyncomplete#sources#ultisnips#completor'),
\ }))
endif
call asyncomplete#register_source(asyncomplete#sources#tags#get_source_options({
\ 'name': 'tags',
\ 'priority': 1,
\ 'whitelist': ['c'],
\ 'completor': function('asyncomplete#sources#tags#completor'),
\ }))
This is my configuration for sources.
I can't see tags. Only buffer and ultisnips sources are visible.
I`am using asyncomplete newest pulls from master branches.
Hi.
It seems that the max_file_size=-1 does not work properly. I have tag files between 20MB-40MB and they're being ignored ---i.e., the only other source I have is asyncomplete-buffer.vim, and those are the only results shown.
When I use max_file_size=50000000, the tag files are considered.
I'm not very familiar with vim's scripting language, but it seems to me that line 53 in asyncomplete-tags.vim/autoload/asyncomplete/sources/tags.vim is wrong ---i.e., in the logical condition, the operand to the left of || is always false.
Because this plugin is only triggered on word characters (let l:kw = matchstr(l:typed, '\w\+$')
), if a string is entered that contains hyphens, for instance, tags aren't searched.
Would it be possible to re-implement g:asyncomplete_default_refresh_pattern
and use that?
Otherwise, I'm finding that this works much better:
let l:kw = matchstr(l:typed, '[[:alnum:]_-]\+$')
Could even be good to default to using an external command and fallback to vim script for better perf.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.