GithubHelp home page GithubHelp logo

nvim-jack-in's Introduction

nvim-jack-in


Jack in to CLJ & Leiningen from Neovim. Inpsired by vim-jack-in.

Installation

Lazy

{'TreyBastian/nvim-jack-in', config = true}

Example with options

{
  'TreyBastian/nvim-jack-in',
  opts = {
      location = 'vsplit',
      force_powershell = true,
  },
  config = true,
}

Options

clj_dependencies

Dependencies that should be injected into clj

Default
clj_dependencies = {
  { name = "nrepl/nrepl",       version = "RELEASE" },
  { name = "cider/cider-nrepl", version = "RELEASE" },
}

clj_middleware

Middleware that should be injected into clj

Default
clj_middleware = {
  "cider.nrepl/cider-middleware"
}

lein_plugins

Plugins that should be injected into leiningen

Default
lein_plugins = {
  { name = "cider/cider-nrepl", version = "RELEASE" },
}

location

Location where the REPL should open

Default
location = 'buffer'
Choices

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_powershell

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.

Default
force_powershell = false

Usage

This plugin automatically registers 2 commands :Cljand :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

Contributing

This project is open source, not just public source. If you wish to contribute start with an issue.

Socials

I developed this project live on Twitch. I'd appreciate any follows. You can also find me on X - formerly Twitter

nvim-jack-in's People

Contributors

treybastian avatar victorvsa avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.