aboutsummaryrefslogtreecommitdiffstats
path: root/lsp/pytest_language_server.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lsp/pytest_language_server.lua')
-rw-r--r--lsp/pytest_language_server.lua27
1 files changed, 27 insertions, 0 deletions
diff --git a/lsp/pytest_language_server.lua b/lsp/pytest_language_server.lua
new file mode 100644
index 00000000..e2f570c6
--- /dev/null
+++ b/lsp/pytest_language_server.lua
@@ -0,0 +1,27 @@
+---@brief
+---
+--- https://github.com/bellini666/pytest-language-server
+---
+--- `pytest-language-server`, a Language Server Protocol implementation for pytest.
+---
+--- Features:
+--- - Go to definition for fixtures (local, conftest.py, and third-party plugins)
+--- - Find references for fixtures across the test suite
+--- - Hover documentation with fixture signatures, return types, and docstrings
+--- - Code completion for available fixtures with hierarchy-aware suggestions
+--- - Diagnostics for undeclared fixtures used in test bodies
+--- - Code actions (quick fixes) to add missing fixture parameters
+--- - Supports fixture overriding and pytest's fixture priority rules
+--- - Character-position aware for self-referencing fixtures
+---@type vim.lsp.Config
+return {
+ cmd = { 'pytest-language-server' },
+ filetypes = { 'python' },
+ root_markers = {
+ 'pytest.ini',
+ 'pyproject.toml',
+ 'setup.py',
+ 'setup.cfg',
+ '.git',
+ },
+}