Closed ogaken-1 closed 1 year ago
Warning: I will close the issue without the minimal init.vim and the reproduction instructions.
const foo = { bar: 'a', }
On a buffer like above, I want to complete bar on fo<C-n><C-y>..
bar
fo<C-n><C-y>.
Popupmenu will be displayed.
ddc.vim version (SHA1): 400afe5cd642362255f63a9cf38c490a2f40f839
denops.vim version (SHA1): 22e7ae3d712f190b3f46483e6b9dd50a99a9abbd
deno version(deno -V output): deno 1.35.3
deno -V
OS: Arch Linux (on WSL2)
neovim/Vim :version output:
:version
NVIM v0.10.0-dev-737+gdf2f5e3912 Build type: Release LuaJIT 2.1.0-beta3
const s:packpath = expand('<script>:p:h') let &packpath = s:packpath const s:ToPackPath = { name -> s:packpath .. '/pack/github.com/opt/' .. name } function s:PackAdd(ghrepo) abort const plugin = #{ \ path: s:ToPackPath(a:ghrepo), \ repo: a:ghrepo->printf('https://github.com/%s.git'), \ name: a:ghrepo, \ } if !isdirectory(plugin.path) call system(['git', 'clone', plugin.repo, plugin.path]) endif exec 'packadd' plugin.name endfunction call s:PackAdd('vim-denops/denops.vim') call s:PackAdd('Shougo/ddc.vim') call s:PackAdd('Shougo/ddc-ui-native') call s:PackAdd('Shougo/ddc-source-nvim-lsp') call s:PackAdd('neovim/nvim-lspconfig') call ddc#custom#set_global(#{ \ ui: 'native', \ sources: [ \ #{ \ name: 'nvim-lsp', \ options: #{ \ forceCompletionPattern: '\.', \ minAutoCompleteLength: 1, \ }, \ }, \ ], \ }) call ddc#enable() lua << EOF require('lspconfig').denols.setup {} EOF
Put above init.vim.
init.vim
Start neovim by $nvim -u ./init.vim test.ts.
$nvim -u ./init.vim test.ts
Paste below code block to current buffer.
Type fo<C-y>..
fo<C-y>.
:redir
:message
Fixed.
It looks working. Thank you!
Warning: I will close the issue without the minimal init.vim and the reproduction instructions.
Problems summary
On a buffer like above, I want to complete
bar
onfo<C-n><C-y>.
.Expected
Popupmenu will be displayed.
Environment Information
ddc.vim version (SHA1): 400afe5cd642362255f63a9cf38c490a2f40f839
denops.vim version (SHA1): 22e7ae3d712f190b3f46483e6b9dd50a99a9abbd
deno version(
deno -V
output): deno 1.35.3OS: Arch Linux (on WSL2)
neovim/Vim
:version
output:Provide a minimal init.vim/vimrc without plugin managers (Required!)
How to reproduce the problem from neovim/Vim startup (Required!)
Put above
init.vim
.Start neovim by
$nvim -u ./init.vim test.ts
.Paste below code block to current buffer.
Type
fo<C-y>.
.Screenshot (if possible)
Upload the log messages by
:redir
and:message
(if errored)