Fork me on GitHub
#vim
<
2020-02-18
>
herald11:02:09

anyone using coc.nvim know how to exclude directories like resources from popping up during jump to definition or show references? I often end up editing these files, then being dumbfounded when my changes are ignored

snoe18:02:26

To ignore the resources and other compilation targets in coc-settings.json under initializationOptions you can set "ignore-classpath-directories": true

πŸŽ‰ 4
🌸 4
herald17:02:03

Thank you so much!!!

herald17:02:27

I've been having trouble finding this config variable.

Nir Rubinstein11:02:34

On that note, if anyone can share his coc config for clojure it’d be helpful. Thanks!

dharrigan11:02:12

This is mine, it's rather simple, ymmv:

dharrigan11:02:15

{
  "coc.source.conjure.priority": 999999,
  "diagnostic.virtualText": true,
  "suggest.echodocSupport": false,
  "suggest.maxCompleteItemCount": 15,
  "suggest.noselect": false,
  "suggest.removeDuplicateItems": true,
  "suggest.enablePreview": true,
  "languageserver": {
    "clojure-lsp": {
      "command": "bash",
      "args": ["-c", "clojure-lsp"],
      "filetypes": ["clojure"],
      "disableDiagnostics": true,
      "rootPatterns": ["deps.edn", "project.clj"],
      "additionalSchemes": ["jar", "zipfile"],
      "trace.server": "verbose",
      "initializationOptions": {
        "use-metadata-for-privacy?": true,
      }
    }
  }
}

πŸ‘ 4
Nir Rubinstein11:02:17

Thanks a lot!!!

dharrigan11:02:28

you're most welcome

snoe18:02:26

To ignore the resources and other compilation targets in coc-settings.json under initializationOptions you can set "ignore-classpath-directories": true

πŸŽ‰ 4
🌸 4