aboutsummaryrefslogtreecommitdiffstats
path: root/lsp/pytest_language_server.lua
blob: e2f570c6c821405309e962a9a8fbd7fd979d87db (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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',
  },
}