diff options
author | Matthew Lemon <y@yulqen.org> | 2023-04-07 20:01:40 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2023-04-07 20:01:40 +0100 |
commit | 3fde8747b178ab76788e245419653f3c173a2abc (patch) | |
tree | 617ec47d8b7a3d81fb4899b3abc9b2eb014ba0fb /nvim/after/plugin/neotest-python.lua | |
parent | 6ad9ebb4d05d0f5de73a76b81464db2b673251d0 (diff) |
Removes harpoon, etc and adds neotest
This also removes treesitter-playground and is a basic install of
neotest and neotest-python.
Diffstat (limited to '')
-rw-r--r-- | nvim/after/plugin/neotest-python.lua | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/nvim/after/plugin/neotest-python.lua b/nvim/after/plugin/neotest-python.lua new file mode 100644 index 0000000..9df429d --- /dev/null +++ b/nvim/after/plugin/neotest-python.lua @@ -0,0 +1,28 @@ +require("neotest").setup({ + adapters = { + require("neotest-python")({ + -- Extra arguments for nvim-dap configuration + -- See https://github.com/microsoft/debugpy/wiki/Debug-configuration-settings for values + dap = { justMyCode = false }, + -- Command line arguments for runner + -- Can also be a function to return dynamic values + args = {"--log-level", "DEBUG"}, + -- Runner to use. Will use pytest if available by default. + -- Can be a function to return dynamic value. + runner = "pytest", + -- Custom python path for the runner. + -- Can be a string or a list of strings. + -- Can also be a function to return dynamic value. + -- If not provided, the path will be inferred by checking for + -- virtual envs in the local directory and for Pipenev/Poetry configs + python = ".venv/bin/python", + -- Returns if a given file path is a test file. + -- NB: This function is called a lot so don't perform any heavy tasks within it. + }) + } +}) + +require("neodev").setup({ + library = { plugins = { "neotest" }, types = true }, + ... +}) |