ぽらろいどの日記

新しい知見を得たり、得られた知見を記録したり共有したりする場を予定しています。

how to setup additional params to add .jar file (Groovy with vim-lsp-settings)

Goal

  • Code autocompletion for Groovy in Vim with LSP

f:id:Portal_Freud:20220415010003p:plain

What I did

Problem

f:id:Portal_Freud:20220415010140p:plain

Solution

  • run :LspSettingsGlobalEdit and write as follows
{
  "groovy-language-server": {
    "workspace_config": {
      "groovy": {
        "classpath": [
          "/path/to/groovy/4.0.1/lib",
          "/path/to/personal/.groovy/lib"
        ]
      }
    }
  }
}