mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-20 16:15:43 +02:00
plugins/iron: init
Update plugins/by-name/iron/default.nix Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com>
This commit is contained in:
parent
a681f7441d
commit
4b27678512
2 changed files with 101 additions and 0 deletions
35
plugins/by-name/iron/default.nix
Normal file
35
plugins/by-name/iron/default.nix
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
{ lib, ... }:
|
||||||
|
|
||||||
|
lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
|
name = "iron";
|
||||||
|
moduleName = "iron.core";
|
||||||
|
packPathName = "iron.nvim";
|
||||||
|
package = "iron-nvim";
|
||||||
|
description = ''
|
||||||
|
Interactive Repls Over Neovim.
|
||||||
|
'';
|
||||||
|
|
||||||
|
maintainers = [ lib.maintainers.jolars ];
|
||||||
|
|
||||||
|
settingsExample = {
|
||||||
|
scratch_repl = true;
|
||||||
|
repl_definition = {
|
||||||
|
sh = {
|
||||||
|
command = [ "zsh" ];
|
||||||
|
};
|
||||||
|
python = {
|
||||||
|
command = [ "python3" ];
|
||||||
|
format.__raw = "require('iron.fts.common').bracketed_paste_python";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
repl_open_cmd.__raw = ''require("iron.view").bottom(40)'';
|
||||||
|
keymaps = {
|
||||||
|
send_motion = "<space>sc";
|
||||||
|
visual_send = "<space>sc";
|
||||||
|
send_line = "<space>sl";
|
||||||
|
};
|
||||||
|
highlight = {
|
||||||
|
italic = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
66
tests/test-sources/plugins/by-name/iron/default.nix
Normal file
66
tests/test-sources/plugins/by-name/iron/default.nix
Normal file
|
@ -0,0 +1,66 @@
|
||||||
|
{
|
||||||
|
empty = {
|
||||||
|
plugins.iron.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
defaults = {
|
||||||
|
plugins.iron = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
scratch_repl = false;
|
||||||
|
repl_definition = { };
|
||||||
|
repl_open_cmd.__raw = ''
|
||||||
|
require("iron.view").split.botright(40)
|
||||||
|
'';
|
||||||
|
highlight = { };
|
||||||
|
highlight_last = "IronLastSent";
|
||||||
|
ignore_blank_lines = true;
|
||||||
|
should_map_plug = false;
|
||||||
|
bufListed = false;
|
||||||
|
keymaps = {
|
||||||
|
send_motion = null;
|
||||||
|
visual_send = null;
|
||||||
|
send_file = null;
|
||||||
|
send_paragraph = null;
|
||||||
|
send_until_cursor = null;
|
||||||
|
send_mark = null;
|
||||||
|
mark_motion = null;
|
||||||
|
remove_mark = null;
|
||||||
|
cr = null;
|
||||||
|
interrupt = null;
|
||||||
|
exit = null;
|
||||||
|
clear = null;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
example = {
|
||||||
|
plugins.iron = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
scratch_repl = true;
|
||||||
|
repl_definition = {
|
||||||
|
sh = {
|
||||||
|
command = [ "zsh" ];
|
||||||
|
};
|
||||||
|
python = {
|
||||||
|
command = [ "python3" ];
|
||||||
|
format.__raw = "require('iron.fts.common').bracketed_paste_python";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
repl_open_cmd.__raw = ''require("iron.view").bottom(40)'';
|
||||||
|
keymaps = {
|
||||||
|
send_motion = "<space>sc";
|
||||||
|
visual_send = "<space>sc";
|
||||||
|
send_line = "<space>sl";
|
||||||
|
};
|
||||||
|
highlight = {
|
||||||
|
italic = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue