feat(nvim): add neotest plugin
parent
37ad1080e7
commit
844c7a9876
35
flake.lock
35
flake.lock
|
@ -621,6 +621,23 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"neotest-python": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1698425037,
|
||||
"narHash": "sha256-C3Dw+fl1QNYU9tg0fE52EzOqeGXxu1vq5SPmDnv2LD8=",
|
||||
"owner": "MoritzBoehme",
|
||||
"repo": "neotest-python",
|
||||
"rev": "3c09dbafb0a1e3ac8b19eabc7157ec312cc2f2ee",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "MoritzBoehme",
|
||||
"ref": "fix-runtimepath-search",
|
||||
"repo": "neotest-python",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"neovim-flake": {
|
||||
"inputs": {
|
||||
"flake-utils": "flake-utils_2",
|
||||
|
@ -1091,6 +1108,7 @@
|
|||
"hyprpaper": "hyprpaper",
|
||||
"impermanence": "impermanence",
|
||||
"master": "master",
|
||||
"neotest-python": "neotest-python",
|
||||
"neovim-nightly-overlay": "neovim-nightly-overlay",
|
||||
"nix-index-database": "nix-index-database",
|
||||
"nix-lazy-nvim": "nix-lazy-nvim",
|
||||
|
@ -1106,7 +1124,6 @@
|
|||
"smartcolumn-nvim": "smartcolumn-nvim",
|
||||
"stable": "stable",
|
||||
"telekasten-nvim": "telekasten-nvim",
|
||||
"telescope-nvim": "telescope-nvim",
|
||||
"timers": "timers"
|
||||
}
|
||||
},
|
||||
|
@ -1248,22 +1265,6 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"telescope-nvim": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1696709104,
|
||||
"narHash": "sha256-v68sId4cWHneUaaYp2neVtBobNZo8lsxKoBhRF4yZrI=",
|
||||
"owner": "nvim-telescope",
|
||||
"repo": "telescope.nvim",
|
||||
"rev": "5a747a9587e4bfc4ae086a38cc679fe54f983b69",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nvim-telescope",
|
||||
"repo": "telescope.nvim",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"timers": {
|
||||
"inputs": {
|
||||
"naersk": "naersk",
|
||||
|
|
|
@ -51,6 +51,8 @@
|
|||
telekasten-nvim.url = "github:renerocksai/telekasten.nvim";
|
||||
none-ls-nvim.flake = false;
|
||||
none-ls-nvim.url = "github:nvimtools/none-ls.nvim";
|
||||
neotest-python.flake = false;
|
||||
neotest-python.url = "github:MoritzBoehme/neotest-python/fix-runtimepath-search";
|
||||
|
||||
# Hyprland
|
||||
hypr-contrib.url = "github:hyprwm/contrib";
|
||||
|
|
|
@ -306,5 +306,25 @@ with builtins;
|
|||
plugin = nvim-puppeteer;
|
||||
lazy = false; # NOTE: plugin lazy-loads itself.
|
||||
}
|
||||
{
|
||||
plugin = neotest;
|
||||
lazy = false;
|
||||
keys = [
|
||||
{ key = "<leader>ct"; cmd = "<cmd>lua require('neotest').summary.toggle()<cr>"; desc = "Test"; }
|
||||
];
|
||||
dependencies = [
|
||||
{ plugin = plenary-nvim; }
|
||||
{ plugin = FixCursorHold-nvim; }
|
||||
|
||||
# adapters
|
||||
{
|
||||
plugin = neotest-python;
|
||||
conf = /* lua */ ''
|
||||
vim.opt.runtimepath:append("${neotest-python}")
|
||||
'';
|
||||
}
|
||||
];
|
||||
conf = readFile ./lua/neotest.lua;
|
||||
}
|
||||
];
|
||||
}
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
require("neotest").setup({
|
||||
adapters = {
|
||||
require("neotest-python")({
|
||||
dap = { justMyCode = false },
|
||||
}),
|
||||
},
|
||||
})
|
|
@ -47,9 +47,14 @@ with lib.my;
|
|||
src = inputs.nvim-puppeteer;
|
||||
};
|
||||
|
||||
null-ls-nvim = prev.vimPlugins.null-ls-nvim.overrideAttrs (a: {
|
||||
null-ls-nvim = prev.vimPlugins.null-ls-nvim.overrideAttrs (_: {
|
||||
version = mkVersionInput inputs.none-ls-nvim;
|
||||
src = inputs.none-ls-nvim;
|
||||
});
|
||||
|
||||
neotest-python = prev.vimPlugins.neotest-python.overrideAttrs (_: {
|
||||
version = mkVersionInput inputs.neotest-python;
|
||||
src = inputs.neotest-python;
|
||||
});
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue