Skip to content

Commit 6b33c78

Browse files
committed
[helix] Use Zuban for goto-definition and similar
It supports pytest fixtures! https://github.com/zubanls/zuban
1 parent 2a64ef9 commit 6b33c78

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

.config/helix.symlink/languages.toml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ command = "efm-langserver"
88
command = "pyright-langserver"
99
args = ["--stdio"]
1010

11+
[language-server.zuban]
12+
command = "zuban"
13+
args = ["server"]
14+
1115
[language-server.vuels.config]
1216

1317
[[language-server.typescript-language-server.config.plugins]]
@@ -28,7 +32,17 @@ args = ["serve"]
2832
name = "python"
2933
auto-format = true
3034
language-servers = [
31-
{ name = "ty", except-features = ["format"] },
35+
{ name = "ty", except-features = [
36+
"format",
37+
"goto-definition",
38+
"goto-declaration",
39+
"goto-type-definition"
40+
] },
41+
{ name = "zuban", only-features = [
42+
"goto-definition",
43+
"goto-declaration",
44+
"goto-type-definition",
45+
] },
3246
{ name = "efm", only-features = ["diagnostics", "format"] },
3347
"typos",
3448
]

Brewfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@ brew "yamllint"
125125
brew "yq"
126126
# In terminal graphical metrics for your *nix system
127127
brew "zenith"
128+
# Python language server and type checker, written in Rust
129+
brew "zuban"
128130
# Web browser
129131
cask "firefox"
130132
# Screen colour temperature controller

0 commit comments

Comments
 (0)