hrsh7th / cmp-nvim-lsp-signature-help

cmp-nvim-lsp-signature-help
584 stars 24 forks source link

Error rendering markdown completion doc: "line continuations pattern specified twice" #38

Closed benelan closed 1 year ago

benelan commented 1 year ago

I am getting the following error when this source tries to render the markdown completion doc:

Error executing vim.schedule lua callback: /usr/local/share/nvim/runtime/lua/vim/lsp/util.lua:1504: Error executing lua: vim/_e
ditor.lua:0: nvim_exec2()../usr/local/share/nvim/runtime/syntax/markdown.vim[36]../usr/local/share/nvim/runtime/syntax/vim.vim,
 line 820: Vim(syntax):E403: syntax sync: line continuations pattern specified twice
stack traceback:
        [C]: in function 'nvim_exec2'
        vim/_editor.lua: in function 'cmd'
        /usr/local/share/nvim/runtime/lua/vim/lsp/util.lua:1489: in function 'apply_syntax_to_region'
        /usr/local/share/nvim/runtime/lua/vim/lsp/util.lua:1513: in function </usr/local/share/nvim/runtime/lua/vim/lsp/util.lu
a:1504>
        [C]: in function 'nvim_buf_call'
        /usr/local/share/nvim/runtime/lua/vim/lsp/util.lua:1504: in function 'stylize_markdown'
        ...ocal/share/nvim/lazy/nvim-cmp/lua/cmp/view/docs_view.lua:55: in function 'open'
        /home/ben/.local/share/nvim/lazy/nvim-cmp/lua/cmp/view.lua:242: in function 'callback'
        .../.local/share/nvim/lazy/nvim-cmp/lua/cmp/utils/async.lua:138: in function ''
        vim/_editor.lua: in function <vim/_editor.lua:0>
stack traceback:
        [C]: in function 'nvim_buf_call'
        /usr/local/share/nvim/runtime/lua/vim/lsp/util.lua:1504: in function 'stylize_markdown'
        ...ocal/share/nvim/lazy/nvim-cmp/lua/cmp/view/docs_view.lua:55: in function 'open'
        /home/ben/.local/share/nvim/lazy/nvim-cmp/lua/cmp/view.lua:242: in function 'callback'
        .../.local/share/nvim/lazy/nvim-cmp/lua/cmp/utils/async.lua:138: in function ''
        vim/_editor.lua: in function <vim/_editor.lua:0>

None of the other sources I use are having this issue so I'm guessing it's specific to this one. I'm on neovim nightly, is that not supported by this plugin?

NVIM v0.10.0-dev-664+g0ce391086
Build type: Release
LuaJIT 2.1.0-beta3
benelan commented 1 year ago

Nevermind, I'm getting the error from the hrsh7th/cmp-nvim-lsp source too, e.g. typing vim.fn.expand and scrolling to the completion item to view the docs. Closing this issue as it isn't related to this specific source.

I'm going to try downgrading neovim to stable to see if it's an upstream issue. If I can still repro I'll open an issue in nvim-cmp since it is effecting multiple sources and the stack trace seems to be pointing there (or the neovim lsp utils).