denops-popup-preview.vim
denops-popup-preview.vim copied to clipboard
window misalignment when using noice plugin
Problems summary
when I use this plugin with noice.vim, noice's completion window and this plugin window are not displayed well.
minimal init.vim/vimrc without plugin managers and other settings
here is minimum configuration.
set rtp+=path/to/folke/noice.nvim
set rtp+=path/to/MunifTanjim/nui.nvim
set rtp+=path/to/Shougo/ddc.vim
set rtp+=path/to/Shougo/ddc-ui-native
set rtp+=path/to/hrsh7th/vim-vsnip
set rtp+=path/to/hrsh7th/vim-vsnip-integ
set rtp+=path/to/matsui54/denops-popup-preview.vim
set rtp+=path/to/vim-denops/denops.vim
let s:ddc_config_json =<< trim MARK
{
"ui": "native",
"sources": ["vsnip"]
}
MARK
let s:ddc_config_json = s:ddc_config_json->join('')->json_decode()
call ddc#custom#patch_global(s:ddc_config_json)
call ddc#enable()
call popup_preview#enable()
lua << EOF
require('noice').setup {}
EOF
and ~/.vsnip/global.json
{
"hoge": {
"prefix": ["hoge"],
"body": [
"class $1 ${2:extends ${3:Parent} }{",
"\tconstructor() {",
"\t\t$0",
"\t}",
"}"
],
"description": "hoge"
},
"piyo": {
"prefix": ["hoge_piyo"],
"body": [
"class $1 ${2:extends ${3:Parent} }{",
"\tconstructor() {",
"\t\t$0",
"\t}",
"}"
],
"description": "piyo"
}
}