You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here is how I was able to get edgy working with iron.
In your iron configuration define repl_open_cmd as follows:
{
config= {
repl_open_cmd=function(bufnr)
-- iron doesn't set the filetype for the buffers it creates so we need-- to provide one.vim.api.nvim_set_option_value("filetype", "iron", { buf=bufnr })
-- Create a window and return it's id.returnrequire("iron.view").split.vertical.botright(40)(bufnr)
end,
}
}
You can now wire up iron to edgy. For example, here is what I have currently:
{
bottom= {
{
title="Iron",
ft="iron",
size= { height=0.4 },
filter=function(buf)
-- We only want buffers which iron is managing.returnrequire("iron.lowlevel").repl_exists({ bufnr=buf })
end,
}
}
}
If there is a better way to do this, please let me know!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Here is how I was able to get edgy working with iron.
In your iron configuration define
repl_open_cmd
as follows:You can now wire up iron to edgy. For example, here is what I have currently:
If there is a better way to do this, please let me know!
Beta Was this translation helpful? Give feedback.
All reactions