diff --git a/nix/sources.json b/nix/sources.json index 41521b2..d71468b 100644 --- a/nix/sources.json +++ b/nix/sources.json @@ -149,6 +149,12 @@ "rev": "018bd04d80c9a73d399c1061fa0c3b14a7614399", "type": "git" }, + "iron.nvim": { + "branch": "master", + "repo": "git@github.com:vigemus/iron.nvim", + "rev": "7f876ee3e1f4ea1e5284b1b697cdad5b256e8046", + "type": "git" + }, "leap-ast.nvim": { "branch": "main", "repo": "git@github.com:ggandor/leap-ast.nvim", @@ -275,6 +281,12 @@ "rev": "d15582d3d0c09280f371fa5f21537cf4530ed330", "type": "git" }, + "nvim-regexplainer": { + "branch": "main", + "repo": "git@github.com:bennypowers/nvim-regexplainer", + "rev": "ae651b187bdaa0fc6cbf60e660da5ebf74013d72", + "type": "git" + }, "nvim-snippy": { "branch": "master", "repo": "git@github.com:dcampos/nvim-snippy", diff --git a/plugins/iron.lua b/plugins/iron.lua new file mode 100644 index 0000000..40d4976 --- /dev/null +++ b/plugins/iron.lua @@ -0,0 +1,15 @@ +return function() + local iron = require "iron.core" + local view = require "iron.view" + + iron.setup { + config = { + repl_definition = { + typescript = { + command = { "ts-node" }, + }, + }, + repl_open_cmd = view.split.vertical "40%", + }, + } +end diff --git a/plugins/spec.nix b/plugins/spec.nix index 53fe25e..fbc449b 100644 --- a/plugins/spec.nix +++ b/plugins/spec.nix @@ -205,6 +205,11 @@ in rec { config = ./indent-blankline.lua; }; + iron = { + src = sources."iron.nvim"; + config = ./iron.lua; + }; + leap = { src = sources."leap.nvim"; config = ./leap.lua; @@ -442,6 +447,14 @@ in rec { }; }; + regexplainer = { + src = sources.nvim-regexplainer; + config = true; + dependencies = { + inherit nui nvim-treesitter; + }; + }; + # sg = let # package = inputs'.sg-nvim.packages.default; # in {