Skip to content
Snippets Groups Projects
Unverified Commit 3edc7d0b authored by dpsutton's avatar dpsutton Committed by GitHub
Browse files

Add lsp (#15181)

* Add lsp and config

```emacs-lisp
  (use-package lsp-mode
    :ensure t
    :hook ((clojure-mode . lsp)
           (clojurec-mode . lsp)
           (clojurescript-mode . lsp))
    :config
    (setq lsp-enable-indentation nil)
    (setq lsp-enable-file-watchers nil) ;; annoying and i can't specify paths
    ;; add paths to your local installation of project mgmt tools, like lein
    (dolist (m '(clojure-mode
                 clojurec-mode
                 clojurescript-mode
                 clojurex-mode))
       (add-to-list 'lsp-language-id-configuration `(,m . "clojure"))))
```

* Add socket repl support to project.clj (also include reveal)

* Configure lsp so that enterprise is on the classpath
parent 6b8ddc84
No related branches found
No related tags found
No related merge requests found
......@@ -77,3 +77,7 @@ dev/src/dev/nocommit/
**/cypress_sample_dataset.json
/frontend/src/cljs
.shadow-cljs
# lsp: ignore all but the config file
.lsp/*
!.lsp/config.edn
{:keep-require-at-start? true
:show-docs-arity-on-same-line? true
:project-specs [{:project-path "project.clj"
:classpath-cmd ["lein" "with-profile" "+ee" "classpath"]}]}
......@@ -191,6 +191,12 @@
{:source-paths ["enterprise/backend/src"]
:test-paths ["enterprise/backend/test"]}
:socket
{:dependencies
[[vlaaad/reveal "1.3.196"]]
:jvm-opts
["-Dclojure.server.repl={:port 5555 :accept clojure.core.server/repl}"]}
:dev
{:source-paths ["dev/src" "local/src"]
:test-paths ["test" "backend/mbql/test" "shared/test"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment