Comments (5)
I've never actually worked with CLJS, but I'd like to add support.
Not really sure about how to do that, though.
I'll take a look at piggieback to understand some more about it.
This will probably be the next major bump.
from acid.nvim.
Pseudo-code of python written in Clojure
(defn get-session
[path]
(if (string/ends-with? path ".cljs")
(:cljs-session @state)
(:session @state)))
To initialize the cljs session, you clone the current session (and get a new id), and call a user-supplied repl-env function. The one provided by boot-cljs-repl is the most stable in my experience. This will turn the new session into a cljs session.
from acid.nvim.
Some thoughts coming from working with .cljc
files with fireplace.vim: fireplace only lets you connect to a single nrepl (either piggieback-or-similar for CLJS or a normal CLJ nrepl). When working with .cljc files it'd be very useful to be connected to both, and allow requires or any other sort of evals to target either CLJ or CLJS repls.
Not sure what the UX would be like. Separate mappings for CLJ and CLJS? Or some way to toggle which repl to target?
from acid.nvim.
It seems that some sort of session management is needed.. I've drafted a bit of this and a rudimentary implementation of 'sticky session' exists, while untested.
As soon as I have enough time to play with this, I'll come up with a long-lived branch that implements this behavior and make it available here for testing.
from acid.nvim.
I've recently added sessions to the new lua version. I believe there might be still a few bits until full cljs support out of the box, but it should be possible already.
Does anyone mind guiding me to test this?
from acid.nvim.
Related Issues (20)
- On update remote plugins HOT 3
- Specify :connect port HOT 5
- Boot support HOT 5
- Commands are not working HOT 6
- acid.nvim throws an error out of the box HOT 20
- The "K" keybinding to look up docs throws an error HOT 13
- The "<C-]>" keybinding to jump to declaration throws an error HOT 4
- Feature request: show stacktrace when eval produces an error HOT 5
- Feature request: a simple REPL prompt in the command area HOT 1
- Feature request: a more flexible AcidMotion HOT 9
- Obscure error message when no nREPL is running HOT 11
- Require/eval fails when the folder hierarchy isn't typical for a Clojure project HOT 7
- Feature request: a command to evaluate a string of input (i.e programmatic `cqp`) HOT 6
- :AcidRequire clojure.string - Weird error HOT 5
- Feature request: an option to disable "go to definition" HOT 4
- No request handler registered for acid:function:AcidGetNs HOT 15
- Install fails with "Exit status: 1" HOT 14
- Unknown function: trim HOT 4
- `gd` kills `:AcidEval` HOT 2
- Bad argument #1 to ipairs HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from acid.nvim.