DEV Community

tjb
tjb

Posted on

LunarVim + vim-iced Configuration

Image description

I wanted to create a quick blog post on how to get vim-iced to work with LunarVim since I struggled to get it working and the instructions on vim-iced's website are focused around vim or Neovim.

Here are the steps that worked for me!

  1. Add the following plugins to your config.lua file.
  {
    "guns/vim-sexp"
  },
  {
    "liquidz/vim-iced",
    config = function()
      vim.g.iced_enable_default_key_mappings = true
    end
  }
Enter fullscreen mode Exit fullscreen mode

Note: make sure to allow LunarVim to install the plugins!

  1. Add the iced command to your PATH by using the path to the vim-iced plugin that LunarVim installed.
export PATH=$PATH:~/.local/share/lunarvim/site/pack/lazy/opt/vim-iced/bin
Enter fullscreen mode Exit fullscreen mode

Run the following command in your terminal to confirm you are able to use the iced command.

iced version
Enter fullscreen mode Exit fullscreen mode

The installed version of vim-iced will show after running this command.
terminal image of iced version

  1. Open your Clojure project with LunarVim and navigate to a Clojure file. Open the terminal and run iced repl to start the REPL. Navigate back to your Clojure file and run :IcedConnect to connect to the REPL. You will see a message that says "Connected."

Congrats! You are now able to use vim-iced with LunarVim!

Top comments (0)