addingiron
This commit is contained in:
parent
f823a67f73
commit
d7e405283f
1
init.lua
1
init.lua
|
|
@ -1074,6 +1074,7 @@ require('lazy').setup({
|
|||
-- require 'kickstart.plugins.lint',
|
||||
-- require 'kickstart.plugins.autopairs',
|
||||
require 'kickstart.plugins.neo-tree',
|
||||
require 'kickstart.plugins.iron',
|
||||
-- require 'kickstart.plugins.gitsigns', -- adds gitsigns recommend keymaps
|
||||
|
||||
-- Scala language support
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
"fidget.nvim": { "branch": "main", "commit": "e32b672d8fd343f9d6a76944fedb8c61d7d8111a" },
|
||||
"gitsigns.nvim": { "branch": "main", "commit": "cdafc320f03f2572c40ab93a4eecb733d4016d07" },
|
||||
"guess-indent.nvim": { "branch": "main", "commit": "84a4987ff36798c2fc1169cbaff67960aed9776f" },
|
||||
"iron.nvim": { "branch": "master", "commit": "746414e67adcd3ad2ad5dbe6262543b55ac3f3cd" },
|
||||
"lazy.nvim": { "branch": "main", "commit": "85c7ff3711b730b4030d03144f6db6375044ae82" },
|
||||
"lazydev.nvim": { "branch": "main", "commit": "5231c62aa83c2f8dc8e7ba957aa77098cda1257d" },
|
||||
"mason-lspconfig.nvim": { "branch": "main", "commit": "7d527c76c43f46294de9c19d39c5a86317809b4b" },
|
||||
|
|
|
|||
|
|
@ -0,0 +1,51 @@
|
|||
return {
|
||||
"Vigemus/iron.nvim",
|
||||
config = function()
|
||||
local iron = require("iron.core")
|
||||
local view = require("iron.view")
|
||||
local common = require("iron.fts.common")
|
||||
|
||||
iron.setup({
|
||||
config = {
|
||||
scratch_repl = true,
|
||||
-- How the repl window will be displayed
|
||||
repl_open_cmd = view.bottom(40),
|
||||
-- Choose your preferred REPL for each language:
|
||||
repl_definition = {
|
||||
sh = {
|
||||
command = {"zsh"}
|
||||
},
|
||||
python = {
|
||||
command = {"python3"},
|
||||
format = common.bracketed_paste_python,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
keymaps = {
|
||||
send_motion = "<leader>rs",
|
||||
visual_send = "<leader>rs",
|
||||
send_file = "<leader>rf",
|
||||
send_line = "<leader>rl",
|
||||
send_mark = "<leader>rm",
|
||||
mark_motion = "<leader>rm",
|
||||
mark_visual = "<leader>rm",
|
||||
remove_mark = "<leader>rd",
|
||||
cr = "<leader>r<cr>",
|
||||
interrupt = "<leader>r<space>",
|
||||
exit = "<leader>rq",
|
||||
clear = "<leader>rc",
|
||||
},
|
||||
|
||||
highlight = { italic = true },
|
||||
ignore_blank_lines = true,
|
||||
})
|
||||
|
||||
-- Optional: automatically open the REPL on first send
|
||||
vim.keymap.set("n", "<leader>ro", function()
|
||||
local ft = vim.bo.filetype
|
||||
require("iron.core").repl_for(ft)
|
||||
require("iron.core").focus_on(ft)
|
||||
end)
|
||||
end,
|
||||
}
|
||||
Loading…
Reference in New Issue