Skip to content

Iron.nvim and lazyvim #319

Answered by michaelzusev
nl2002 asked this question in Q&A
Feb 26, 2023 · 3 comments · 1 reply
Discussion options

You must be logged in to vote

Hey! I had asked this over at the LazyVim repo discussions and got this answer which worked for me:

You can use the following code to setup iron.nvim in the LazyVim config with the default iron.nvim config:

{
  "hkupty/iron.nvim",
  config = function()
    local iron = require("iron.core")

    iron.setup({
      config = {
        -- Whether a repl should be discarded or not
        scratch_repl = true,
        -- Your repl definitions come here
        repl_definition = {
          sh = {
            -- Can be a table or a function that
            -- returns a table (see below)
            command = { "zsh" },
          },
        },
        -- How the repl window will be displayed
   …

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@nl2002
Comment options

Answer selected by nl2002
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants