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

Fix error loading "text" syntax for hover #4574

Merged
merged 1 commit into from
Aug 15, 2023

Commits on Aug 8, 2023

  1. Fix error loading "text" syntax for hover

    rust-analyzer sometimes returns a hover result with language being
    "text", but there's no syntax/text.vim, so this would fail with:
    
        Error detected while processing function <SNR>150_VimOutputCallback[6]..<lambda>8[1]..ale#lsp#HandleMessage[30]..ale#hover#HandleLSPResponse[42]..ale#floating_preview#Show[13]..<SNR>161_VimShow:
        line   13:
        E484: Cannot open file syntax/text.vim
    
    Only including the file when it actually exists fixes this.
    
    (Note that I had to substitute javascript for typescript in
    test/test_hover_parsing.vader because there's no syntax/typescript.vim
    in vim 8.0 and neovim 0.2. Likewise for python/rust in
    test/test_hover.vim.)
    liskin committed Aug 8, 2023
    Configuration menu
    Copy the full SHA
    04c1235 View commit details
    Browse the repository at this point in the history