Skip to content

Commit

Permalink
plug: iron, regexplainer
Browse files Browse the repository at this point in the history
  • Loading branch information
willruggiano committed Jul 31, 2023
1 parent 34825a1 commit 842a771
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
12 changes: 12 additions & 0 deletions nix/sources.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
15 changes: 15 additions & 0 deletions plugins/iron.lua
Original file line number Diff line number Diff line change
@@ -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
13 changes: 13 additions & 0 deletions plugins/spec.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 842a771

Please sign in to comment.