I have installed and used dcc.vim on vim.
Now I'm making it possible to supplement it with Tab, but I want Tab to do the original action except when there is a supplementary display (enter a space), but according to the current setting, Tab seems to be in a state where nothing happens when there is no supplementary display.
Please let me know how I can set it up like the one above.
If you type in the INSERT state, [ddc]['vim-lsp'] ← It's depressing to see this coming out for a second.Please tell me how to get rid of it.
callplug#('Shougo/ddc.vim')
59 call plug# ('vim-denops/denops.vim')
60 call plug# ('Shougo/pum.vim')
61 call plug# ('Shougo/ddc-around')
62 call plug#('LumaKernel/ddc-file')
63 call plug#('Shougo/ddc-matcher_head')
64 call plug#('Shougo/ddc-sorter_rank')
65 call plug#('Shougo/ddc-converter_remove_overlap')
66 call plug#('prabirshrestha/vim-lsp')
67 call plug# ('mattn/vim-lsp-settings')
68
69 call ddc#custom#patch_global('completionMenu', 'pum.vim')
70 call ddc#custom#patch_global('sources',[
71\'around',
72\'vim-lsp',
73\'file'
74 \ ])
75 call ddc#custom#patch_global('sourceOptions',{
76 \ '_': {
77\'matchers': ['matcher_head',
78\'sorters': ['sorter_rank'],
79\'converters': ['converter_remove_overlap',
80 \ },
81 \ 'around': {'mark': 'Around'},
82\'vim-lsp': {
83\'mark': 'LSP',
84\'matchers': ['matcher_head',
85\'forceCompletionPattern':'\.|:|->|"\w+/*'
86 \ },
87\'file': {
88\'mark': 'file',
89\'isVolatile': v:true,
90\'forceCompletionPattern': '\S/\S*'
91 \ }})
92 inoremap <Tab><Cmd>callpum#map#insert_relative(+1)<CR>
93 inoremap<S-Tab><Cmd>callpum#map#insert_relative(-1)<CR>
94 call ddc# enable()
I don't use dcc.vim, so I didn't check it, but as far as I read Readme.md in https://github.com/Shougo/ddc.vim,
inoremap pumvisible()?pum#map#insert_relative(+1):'
How about that?
I don't know the other one
© 2024 OneMinuteCode. All rights reserved.