This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-05-23
Channels
- # announcements (12)
- # beginners (225)
- # calva (7)
- # cider (45)
- # clj-kondo (1)
- # cljdoc (1)
- # cljsrn (3)
- # clojure (112)
- # clojure-dev (45)
- # clojure-europe (6)
- # clojure-finland (2)
- # clojure-india (1)
- # clojure-nl (27)
- # clojure-spec (37)
- # clojure-uk (171)
- # clojurescript (39)
- # core-async (9)
- # cursive (22)
- # datascript (8)
- # datomic (50)
- # emacs (12)
- # figwheel-main (17)
- # fulcro (42)
- # garden (2)
- # hoplon (27)
- # jobs (4)
- # kaocha (8)
- # klipse (2)
- # luminus (2)
- # off-topic (9)
- # perun (33)
- # planck (2)
- # re-frame (9)
- # reagent (48)
- # reitit (5)
- # remote-jobs (1)
- # rum (2)
- # shadow-cljs (23)
- # slack-help (3)
- # spacemacs (18)
- # sql (7)
- # tools-deps (24)
- # unrepl (9)
- # vim (30)
@snoe I got CoC + clojure-lsp working! Really cool, thanks for this.
I'm getting a lot of "Unknown symbol". EG I have com.rpl.specter :refer :all
and MAP-KEYS
isn't recognised. java.util.Date
also isn't recognised.
Weirdly MAP-VALS
is available from Coc autocomplete but still comes up as an unknown symbol. MAP-KEYS
isn't available.
Also when in diff view, my ns
declaration (`(ns worker.logic.genesis)`) is marked unused
@alee did you have to do anything special to get CoC + clojure-lsp working? is it just a matter of installing both plugins?
@alee yeah, github issues would be great - I haven't used specter but it's possible we can support the symbols it creates through the macro-defs
config. We'll figure it out in the issue
@dave clojure-lsp is just a command line tool that coc.nvim (or any editor/lsp plugin) launches. lmk if you run into problems getting it running
👍 i'm keen to give it a try. i use deoplete now and i'm not totally satisfied with the completion results or the behavior, which can be slightly buggy
Install instructions, from memory:
Plug 'neoclide/coc.nvim', {'tag': '*', 'do': './install.sh'}
- do the necessary to install
Download clojure-lsp from github release, chmod +x, put on path
Copy snoe's https://github.com/snoe/dotfiles/blob/master/home/.vimrc from the " COC
comment down into your .vimrc or whichever
Launch vim
Run :CocConfig
, accept json addon, paste https://github.com/snoe/dotfiles/blob/master/home/.vim/coc-settings.json
Change the command to the full path to clojure-lsp
, replace args with []
Relaunch vim to edit a clojure file, wait a few seconds for the clojure-lsp JVM to start as a subprocess (it's silent).
YOu know with sexp (or sexp-mappings-for-egular-people), if you slurp or barf, is there a way to stop the extra space from being inserted
@snoe any suggestions on how to deal with macros using clojure-lsp? They generate lots of false positives (same problem on all static checkers currently). Some common way to configure those would be interesting, but I'm not sure that's even possible.
@mynomoto yeah, take a a look at the macro-defs
config, I think it's pretty flexible but there's still stuff missing. https://github.com/snoe/clojure-lsp/blob/master/src/clojure_lsp/parser.clj#L620 for some examples