From 3ada6b4267f29a09c8bc240c2a75b194d51ff008 Mon Sep 17 00:00:00 2001 From: Ariel D'Alessandro Date: Tue, 10 Jan 2023 11:03:17 +0100 Subject: feat: remove more after config plugins --- after/plugin/iron.lua | 61 --------------------------------------------------- 1 file changed, 61 deletions(-) delete mode 100644 after/plugin/iron.lua (limited to 'after/plugin/iron.lua') diff --git a/after/plugin/iron.lua b/after/plugin/iron.lua deleted file mode 100644 index 972ccbc..0000000 --- a/after/plugin/iron.lua +++ /dev/null @@ -1,61 +0,0 @@ -local ok, iron = pcall(require, "iron.core") - -if not ok then - return -end - -iron.setup({ - config = { - should_map_plug = false, - -- Whether a repl should be discarded or not - scratch_repl = true, - close_window_on_exit = true, - -- Your repl definitions come here - repl_definition = { - sh = { - command = { "zsh" }, - }, - javascript = { - command = { "node" }, - }, - php = { - command = { "psysh" }, - }, - tinker = { - command = { "php", "artisan", "tinker" }, - }, - sail = { - command = { "sail", "tinker" }, - }, - }, - repl_open_cmd = "rightbelow vertical 100 split", - -- how the REPL window will be opened, the default is opening - -- a float window of height 40 at the bottom. - }, - keymaps = { - send_motion = "sc", - visual_send = "sc", - send_file = "sf", - send_line = "sl", - send_mark = "sm", - mark_motion = "mc", - mark_visual = "mc", - remove_mark = "md", - cr = "s", - interrupt = "s", - exit = "sq", - clear = "cl", - }, - highlight = { - italic = true, - }, -}) - --- Idea --- create a menu to ask which console wants to start --- for php example we have --- psysh | tinker | tinker on sail --- base on that save the expected filetype on a buffer variable --- add the parameter to the command for the IronRepl and all commands to send --- or beter use my own functions useing the core.* functions --- not all functions takes the ft as parameter -- cgit v1.2.3