Skip to content

Commit f6e6dc0

Browse files
committed
refactor(opencode): update lsp config
1 parent 57b8db6 commit f6e6dc0

1 file changed

Lines changed: 41 additions & 5 deletions

File tree

  • modules/home/programs/terminal/tools/opencode

modules/home/programs/terminal/tools/opencode/lsp.nix

Lines changed: 41 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,27 @@
4949
};
5050
};
5151

52-
pyright = {
53-
command = [ (lib.getExe pkgs.pyright) ];
52+
basedpyright = {
53+
command = [
54+
(lib.getExe' pkgs.basedpyright "basedpyright-langserver")
55+
"--stdio"
56+
];
5457
extensions = [
5558
".py"
5659
".pyi"
60+
".pyw"
61+
];
62+
};
63+
64+
ruff = {
65+
command = [
66+
(lib.getExe pkgs.ruff)
67+
"server"
68+
];
69+
extensions = [
70+
".py"
71+
".pyi"
72+
".pyw"
5773
];
5874
};
5975

@@ -69,7 +85,15 @@
6985
};
7086

7187
clangd = {
72-
command = [ (lib.getExe' pkgs.clang-tools "clangd") ];
88+
command = [
89+
(lib.getExe' pkgs.clang-tools "clangd")
90+
"--background-index"
91+
"--clang-tidy"
92+
"--header-insertion=iwyu"
93+
"--completion-style=detailed"
94+
"--function-arg-placeholders"
95+
"--fallback-style=llvm"
96+
];
7397
extensions = [
7498
".c"
7599
".cpp"
@@ -84,6 +108,11 @@
84108
];
85109
};
86110

111+
fish-lsp = {
112+
command = [ (lib.getExe pkgs.fish-lsp) ];
113+
extensions = [ ".fish" ];
114+
};
115+
87116
typescript = {
88117
command = [
89118
(lib.getExe pkgs.typescript-language-server)
@@ -116,8 +145,7 @@
116145
};
117146

118147
csharp = {
119-
# FIXME: broken nixpkgs
120-
# command = [ (lib.getExe pkgs.roslyn-ls) ];
148+
command = [ (lib.getExe pkgs.roslyn-ls) ];
121149
extensions = [
122150
".cs"
123151
".csx"
@@ -155,6 +183,14 @@
155183
];
156184
extensions = [ ".toml" ];
157185
};
186+
187+
marksman = {
188+
command = [ (lib.getExe pkgs.marksman) ];
189+
extensions = [
190+
".md"
191+
".mdx"
192+
];
193+
};
158194
};
159195
};
160196
}

0 commit comments

Comments
 (0)