Jack in to CLJ & Leiningen from Neovim. Inpsired by vim-jack-in.
{'TreyBastian/nvim-jack-in', config = true}
{
'TreyBastian/nvim-jack-in',
opts = {
location = 'vsplit',
force_powershell = true,
},
config = true,
}
Dependencies that should be injected into clj
clj_dependencies = {
{ name = "nrepl/nrepl", version = "RELEASE" },
{ name = "cider/cider-nrepl", version = "RELEASE" },
}
Middleware that should be injected into clj
clj_middleware = {
"cider.nrepl/cider-middleware"
}
Plugins that should be injected into leiningen
lein_plugins = {
{ name = "cider/cider-nrepl", version = "RELEASE" },
}
Location where the REPL should open
location = 'buffer'
buffer
- opens REPL in a new buffer with focus
background
- opens REPL in a new buffer but you stay focused on current buffer
split
- opens REPL in new split
vsplit
- opens REPL in new vertical split
tab
- opens REPL in new tab
Force the usage of powershell. In windows setting vim.o.shell = powershell
might sometimes not be optimal. Clj by default on windows is installed as a powershell module. This forces the plugin to use powershell.
force_powershell = false
This plugin automatically registers 2 commands :Clj
and :Lein
to start their respective REPLs
You can easily map these commands to a key.
vim.keymap.set("n", "<leader>rc", "<CMD>:Clj<CR>")
vim.keymap.net("n", "<leader>rl", "<CMD>:Lein<CR>")
You can supply additional arguments to the command. For example to use Kit-Clj development mode you can do.
:Clj -A:dev
This project is open source, not just public source. If you wish to contribute start with an issue.
I developed this project live on Twitch. I'd appreciate any follows. You can also find me on X - formerly Twitter