Add nvim-lazy submodule and add plugin configuration.
This commit is contained in:
parent
f545e30831
commit
b1ad0b623a
39 changed files with 1599 additions and 0 deletions
53
pkgsets/nvim/sniprun.nix
Normal file
53
pkgsets/nvim/sniprun.nix
Normal file
|
@ -0,0 +1,53 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
|
||||
lib.mkIf (lib.elem "nvim::sniprun" config.machine.pkgs) {
|
||||
programs.nvim-lazy.lazyPlugins = [
|
||||
{
|
||||
lazy = true;
|
||||
dir = vPlug: vPlug.sniprun;
|
||||
ft = [
|
||||
"md"
|
||||
"adoc"
|
||||
"org"
|
||||
"go"
|
||||
"py"
|
||||
];
|
||||
cmd = [ "SnipRun" ];
|
||||
opts = {
|
||||
live_mode_toggle = "enable";
|
||||
# TODO: This does not work, maybe open an issue
|
||||
# selected_interpreters = [ "Python3_fifo" ];
|
||||
repl_enable = [ "Python3_original" ];
|
||||
display = [ "TerminalWithCode" ];
|
||||
};
|
||||
keys = [
|
||||
{
|
||||
bind = "<leader>sr";
|
||||
cmd = "<Plug>SnipRun";
|
||||
opts = {
|
||||
desc = "Run snippet.";
|
||||
mode = [
|
||||
"n"
|
||||
"v"
|
||||
];
|
||||
};
|
||||
}
|
||||
{
|
||||
bind = "<leader>sq";
|
||||
cmd = "<Plug>SnipClose";
|
||||
opts = {
|
||||
desc = "Stop running interpreters.";
|
||||
mode = [
|
||||
"n"
|
||||
"v"
|
||||
];
|
||||
};
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue