Closed Jurik-Phys closed 11 months ago
Unfortunately, this source is too old(it is two years ago). And latest ddc.vim does not support it.
@delphinus Ping.
Please test this.
Please test this.
3
Just nothing
I used Vundle plugin manager
Plugin 'Shougo/ddc.vim'
Plugin 'vim-denops/denops.vim'
Plugin 'Shougo/ddc-ui-native'
Plugin 'delphinus/ddc-ctags'
Plugin 'tani/ddc-fuzzy'
I installed 'delphinus/ddc-ctags' and replace ~/.vim/bundle/ddc-ctags/deonps/@ddc-sources/ctags.ts from pull request
Set sources only 'ctags'
call ddc#custom#patch_global('sources', [ 'ctags' ])
Set source options
call ddc#custom#patch_global('sourceOptions', {
\ '_': {
\ 'matchers': ['matcher_fuzzy'],
\ 'sorters': ['sorter_fuzzy'],
\ 'converters': ['converter_fuzzy', 'converter_remove_overlap' ],
\ },
\ 'ctags' : {
\ 'mark' : '[C]',
\ },
\ })
Also set actual path to 'ctags'
call ddc#custom#patch_global('sourceParams', {
\ 'ctags': {'executable': '/usr/bin/ctags'},
\ })
In root of my project I have actual ctag file with name "tags"
When I typing "socket->wr" in projects *.cpp file nothing to do, no pop-up menu.
When I manual pressing
Where can I read about debugging this plugin? I don't understand where to look for debugging information about the plugin's operation.
It worked for me.
set nocompatible
set runtimepath+=~/work/denops.vim
set runtimepath+=~/work/ddc.vim
set runtimepath+=~/work/ddc-ui-native
set runtimepath+=~/work/ddc-filter-matcher_head
set runtimepath+=~/work/ddc-filter-sorter_rank
set runtimepath+=~/src/ddc-ctags
call ddc#custom#patch_global('sources', ['ctags'])
call ddc#custom#patch_global('ui', 'native')
call ddc#custom#patch_global('sourceOptions', {
\ '_': {
\ 'matchers': ['matcher_head'],
\ 'sorters': ['sorter_rank'],
\ },
\ 'ctags' : {
\ 'mark' : '[C]',
\ },
\ })
call ddc#enable()
cd ~/src/vim
edit src/eval.c
I think you don't set ui
option.
Hm, work but very strange.
After write this post I see that ddc-ctags found other function no "createToyResponse" but "createToy'. All variants of "createToyResponse" was found by ddc-around-sources. Also I see that this function in first place when used native autocomplete by <Ctrl-x><Ctrl-]>
. All autocomlete function (createToyResponse, writeHeaders) present in tags file in root of project.
call ddc#custom#patch_global('sources', ['ctags'])
call ddc#custom#patch_global('sources', ['ctags', 'around', 'buffer'])
autocomplete for one source 'around', 'buffer', 'ctag'. Variant of 'around' has more priority, result of 'ctags' is hidden.
call ddc#custom#patch_global('sources', ['around', 'buffer', 'ctags' ])
also I can activate vim native autocomplite by <Ctrl+x><Ctrl+]>
. The "createToyResponse" option is also there for autocomplete.
autocomplete for one source 'ctag' and I get "Just nothing" from previous message
autocomplete for one source 'ctag', 'around', 'buffer'. socket->writeHeaders() not found for autocomlete by ddc-ctags
native autocomlete <Ctrl+x><Ctrl+]> work for this case
Sorry for late and lacking update. #3 is merged (thx @Shougo). Is the problem solved?
Sorry for late and lacking update. #3 is merged (thx @Shougo). Is the problem solved?
No, because I experimented with version from pull request
@Jurik-Phys the source seems filter the item by the file
. To complete A.txt tag, you need to edit A.txt file. And it is different issue. Your original issue(ctags source does not work) is solved. It should be closed.
If you have another problem, you need to create minimal config with minimal tags and minimal edit file and instructions.
After install and setup ddc-ctag gives an error into vim after trying found data for autocomplete (after typing second charset). File 'tags' exists into root of c++/qt project
Vim - 9.0.1499 deno 1.38.0 (release, x86_64-unknown-linux-gnu) v8 12.0.267.1 typescript 5.2.2 ddc.vim - 2023.07.08; denops.vim - v5.0.0 Universal Ctags 5.9.0, Copyright (C) 2015 Universal Ctags Team
Help me, I need to automatically complete names of methods in my classes