aboutsummaryrefslogtreecommitdiffstats
path: root/lsp
diff options
context:
space:
mode:
authorThiago Bellini Ribeiro <hackedbellini@gmail.com>2026-07-11 14:41:37 +0200
committerGitHub <noreply@github.com>2026-07-11 08:41:37 -0400
commitc69dfaef93c37dffeeeef1cf0d85613e76dbff47 (patch)
tree1ebadf4e281506087a612a9bd5c1b4e6b89217fb /lsp
parentdocs: update configs.md (diff)
downloadnvim-lspconfig-c69dfaef93c37dffeeeef1cf0d85613e76dbff47.tar
nvim-lspconfig-c69dfaef93c37dffeeeef1cf0d85613e76dbff47.tar.gz
nvim-lspconfig-c69dfaef93c37dffeeeef1cf0d85613e76dbff47.tar.bz2
nvim-lspconfig-c69dfaef93c37dffeeeef1cf0d85613e76dbff47.tar.lz
nvim-lspconfig-c69dfaef93c37dffeeeef1cf0d85613e76dbff47.tar.xz
nvim-lspconfig-c69dfaef93c37dffeeeef1cf0d85613e76dbff47.tar.zst
nvim-lspconfig-c69dfaef93c37dffeeeef1cf0d85613e76dbff47.zip
feat: pytest-language-server #4472
Diffstat (limited to 'lsp')
-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',
+ },
+}