liuchengxu / vista.vim

:cactus: Viewer & Finder for LSP symbols and tags

Home Page:https://liuchengxu.github.io/vista.vim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LSPs which do not support textDocument/documentSymbol, constantly receive errors.

beauwilliams opened this issue · comments

commented

I have the marksman LSP installed and with this plugin I get loads of errors because the LSP does not support textDocument/documentSymbol

Now I currently load Aerial with all my LSP using on_attach method require('aerial').on_attach(client)

I can write some error handling code in my config but I think this is best handled upstream. I can look into PR when I have time. Should be quick fix to check if its supported or not

vim.lsp.buf_request(0, 'textDocument/documentSymbol', params, callback)

commented

Ignore. I seem to be getting this bug again without vista attatched. Must be something else

commented

The error appears to have been caused by the marksman LSP server crashing with an unhandled exception.. after the textDocument/documentSymbol automations are registered. This is more of an edge case if anything then.

commented

Appears to be fixed with updated binary