Skip to content

Klafyvel/nvim-smuggler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NVim-Smuggler

Well, listen up, folks! REPLSmuggler.jl just slipped into your cozy REPL like a shadow in the night.

Demo | Features | Installation | Configuration | Documentation | Acknowledgements | License

Neo-Vim companion plugin for REPLSmuggler.jl. Send code to your Julia REPL, and get Neo-Vim diagnostics in return.

Demo

asciicast

Features

  • Send text to Julia REPL
  • Auto-detection of available REPL
  • Send multiple lines
  • Send range
  • Send text objects
  • Dynamic choice of module for execution

Installation

Using Lazy:

return {
  "klafyvel/nvim-smuggler",
  config=true,
  dependencies = { "nvim-neotest/nvim-nio" },
}

Configuration

Using Lazy, you can set the following options (here given with their default values):

{
  "klafyvel/nvim-smuggler",
  opts = {
      mappings = true, -- set to false to disable all mappings.
      map_smuggle = "<leader>cs", -- Use `[count]<leader>cs` in normal mode to send count lines.
      map_smuggle_range = "<leader>cs", -- Use `<leader>cs` in visual mode to send the current selection.
      map_smuggle_config = "<leader>ce", -- Use `<leader>ce` in normal mode to reconfigure the plugin.
      map_smuggle_operator = "gcs", -- Use `gcs[text object]` to send a text object in normal mode.
  },
  dependencies = { "nvim-neotest/nvim-nio" },
}

Documentation

See :help smuggler.

Acknowledgements

  • vim-slime by jpalardy inspired the design for sending code to the REPL from a buffer,
  • nvim-nio is used for all asynchronous stuff in the plugin.

License

NVim-Smuggler is available under the MIT license.