Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

window misalignment when using noice plugin #26

Open
kamecha opened this issue Mar 28, 2023 · 0 comments
Open

window misalignment when using noice plugin #26

kamecha opened this issue Mar 28, 2023 · 0 comments

Comments

@kamecha
Copy link

kamecha commented Mar 28, 2023

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"
  }
}

Screenshot (if possible)

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant