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

feat: Add ClojureScript support #89

Closed

Conversation

niontrix
Copy link

@niontrix niontrix commented Jan 28, 2023

Why?:

  • The general mechanics for ClojureScript should be the same as for Clojure, but at the moment only *.clj files are considered which hinders ClojureScript support.

This change addresses the need by:

  • Adding .cljs as possible file extensions to encounter

P.S.:
This is my humble attempt to add ClojureScript support. Unfortunately I'm not that proficient of a Clojure developer yet, so I appreciate any directions you can give me if you think that my crack at adding ClojureScript support is the wrong way to go. But it seemed to work as expected when I tried it locally in combination with CIDER.

Why?:
- The general mechanics for ClojureScript should be the same as for Clojure, but
  at the moment only *.clj files are considered which hinders ClojureScript support.

This change addresses the need by:
- Adding .cljs as possible file extensions to encounter
@vemv
Copy link
Contributor

vemv commented Jun 17, 2023

Probably this PR was made redundant by #91

Anyway, as for clojurescript support, please note that CIDER's approach is to include https://github.com/clojure-emacs/clj-suitable which extends Compliment.

That lib isn't exactly perfect, but it got some maintenance, and there's more to come. Issues welcome.

@alexander-yakushev
Copy link
Owner

Yes, thank you for pointing this out, @vemv.

@niontrix: unfortunately, adding ClojureScript support to Compliment requires quite a lot more work than this change. We went through that path before in #62 and ultimately decided to keep CLJS completion in a separate library.

Still, I thank you for wanting to contribute!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants