Closed ZOI-dayo closed 2 years ago
this also happens with this init.lua(ddc.lua is not changed.)
local api = vim.api
local g = vim.g
local o = vim.o
local opt = vim.opt
local keymap = vim.keymap
local fn = vim.fn
function file_exists(name)
return fn.empty(fn.glob(path)) == 1
end
require('jetpack').setup {
'vim-denops/denops.vim',
'Shougo/ddc.vim',
'Shougo/ddc-matcher_head',
'Shougo/ddc-sorter_rank',
'Shougo/ddc-around',
'Shougo/ddc-nvim-lsp',
'LumaKernel/ddc-file',
'matsui54/ddc-buffer',
'Shougo/pum.vim',
'vim-skk/skkeleton',
'ray-x/lsp_signature.nvim',
}
require ('settings.ddc')
@ZOI-dayo Hi :D Thanks for this issue report. I am trying to reproduce it in your shorter setting, but have not yet been able to. Would you be able to provide specific steps to reproduce this?
Sorry, I forgot to write some important steps.
deno
on your computer
(I using deno 1.23.1 (release, aarch64-apple-darwin), v8 10.4.132.8, typescript 4.7.2
)init.lua
to this:
local fn = vim.fn
vim.cmd("runtime */jetpack.vim")
require('jetpack').setup {
'vim-denops/denops.vim',
'Shougo/ddc.vim',
'Shougo/ddc-matcher_head',
'Shougo/ddc-sorter_rank',
'Shougo/ddc-around',
'Shougo/pum.vim',
}
fn["ddc#custom#patch_global"]('sources', {'around'})
fn['ddc#custom#patch_global']('sourceOptions', {
_= {
matchers= {'matcher_head'},
sorters= {'sorter_rank'}
},
})
fn['ddc#custom#patch_global']('completionMenu', 'pum.vim')
fn['ddc#enable']()
$ curl -fLo ~/.config/nvim/plugin/jetpack.vim --create-dirs https://raw.githubusercontent.com/tani/vim-jetpack/master/plugin/jetpack.vim
:JetpackSync
I find that this bug not happen if I press p r <C-n> i <C-n> ....
)
I think this related to whether the floating window was rewritten...?
@ZOI-dayo Thx for the info! I was able to reproduce it. Also, it looks like maybe this problem has already been fixed in the last few fixes. I am not able to reproduce it on my machine with the nightly build. Could you please try it as well?
I confirmed that is fixed. Thank you!!! :)
It not happens on iTerm or nvim-qt, so I think this is the problem of goneovim.
https://user-images.githubusercontent.com/64856587/177034405-ee7c6bea-542a-4c9e-b344-7ca9952fc1c6.mp4
↑ This floating window is provided by Shougo/pum.vim
My environment:
Features: +acl +iconv +tui See ":help feature-compile"
system vimrc file: "$VIM/sysinit.vim" fall-back for $VIM: "/opt/homebrew/Cellar/neovim/0.7.2/share/nvim"
~/.config/nvim/lua/settings/ddc.lua
```lua local fn = vim.fn fn["ddc#custom#patch_global"]('sources', {'around', 'file', 'buffer', 'skkeleton', 'nvim-lsp'}) fn['ddc#custom#patch_global']('sourceOptions', { _= { matchers= {'matcher_head'}, sorters= {'sorter_rank'} }, file= { mark= 'F', isVolatile= true, forceCompletionPattern= [[\S/\S*]], }, buffer= {mark= 'B'}, skkeleton= { mark= 'skkeleton', matchers= {'skkeleton'}, sorters= {} }, ['nvim-lsp']= { mark="L", forceCompletionPattern=[[\.\w*|:\w*|->\w*]], kindLabels = { Class = "c"} } }) fn['ddc#custom#patch_filetype']({'ps1', 'dosbatch', 'autohotkey', 'registry'}, { sourceOptions= { file= { forceCompletionPattern= [[\S\\\S*]], }, } }) fn['ddc#custom#patch_global']('sourceParams', { buffer= { requireSameFiletype=false, limitBytes=5000000, fromAltBuf=true, forceCollect=true, }, }) fn['ddc#custom#patch_global']('completionMenu', 'pum.vim') fn['ddc#enable']() ```~/.config/nvim/lua/settings/lightline.lua
```lua local g = vim.g g.lightline = { colorscheme = 'iceberg', separator = { left = "", right = "" }, subseparator= { left = "", right = "" }, active = { left = { {'mode', 'paste'}, {'readonly', 'filename', 'modified'}, {'linter_checking', 'linter_errors', 'linter_warnings', 'linter_ok'} } } } g.lightline.component_expand = { linter_checking = 'lightline#ale#checking', linter_warnings = 'lightline#ale#warnings', linter_errors = 'lightline#ale#errors', linter_ok = 'lightline#ale#ok', } g.lightline.component_type = { linter_checking = 'left', linter_warnings = 'warning', linter_errors = 'error', linter_ok = 'left', } g['lightline#ale#indicator_checking'] = [[\uf110]] g['lightline#ale#indicator_infos'] = [[\uf129]] g['lightline#ale#indicator_warnings'] = [[\uf071]] g['lightline#ale#indicator_errors'] = [[\uf05e]] g['lightline#ale#indicator_ok'] = [[\uf00c]] --[[ if fn.has('gui_running') then opt.guioptions:remove({'e'}) end ]] g.lightline.tab = { active= { 'tabnum', 'filename', 'modified' }, inactive= { 'tabnum', 'filename', 'modified' } } ```