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

Modify reflection-config.json so that binary works in coc.nvim #1022

Merged
merged 1 commit into from
Apr 26, 2021

Commits on Apr 21, 2021

  1. Modify reflection-config.json so that binary works in coc.nvim

    coc.nvim is one of the implementations of LSP for vim/neovim.
    There's an existing configuration for running the Java build of LemMinX,
    but a reflection exception occurs when trying to run the binary build.
    This PR registers the class for reflection so the binary works in
    coc.nvim.
    
    To test:
      *  Build the LemMinX binary, put in on your PATH
      *  Install coc.nvim: https:/neoclide/coc.nvim/wiki/Install-coc.nvim
      *  If you have the existing XML support `coc-xml` already set up,
         uninstall with `:CocUninstall coc-xml`
      *  Open the configuration file with `:CocConfig`
      *  Add the following configuration:
    ```json
    {
      "languageserver": {
        "xml": {
          "command": "lemminx",
          "trace.server": "verbose",
          "initializationOptions": {},
          "filetypes": [
            "xml"
          ]
        }
      }
    }
    ```
      *  Save and quit
      *  Open an XML file, check if syntax errors appear
    
    Signed-off-by: David Thompson <[email protected]>
    datho7561 committed Apr 21, 2021
    Configuration menu
    Copy the full SHA
    ef2d7d7 View commit details
    Browse the repository at this point in the history