Skip to content

Commit 12f141c

Browse files
committed
wip
1 parent 26004fe commit 12f141c

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

config/languages/lsp.nix

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,14 @@
1818
event = "FileType";
1919
pattern = "typescript";
2020
}
21+
{
22+
event = "FileType";
23+
pattern = "html";
24+
}
25+
{
26+
event = "FileType";
27+
pattern = "htmlangular";
28+
}
2129
];
2230
setupOpts = {
2331
settings = {
@@ -35,6 +43,7 @@
3543
"@styled/typescript-styled-plugin"
3644
"@effect/language-service"
3745
"@angular/language-service"
46+
"typescript-eslint-language-service"
3847
];
3948
};
4049
};
@@ -72,6 +81,22 @@
7281
cmd = ["${pkgs.angular-language-server}/bin/ngserver" "--stdio"];
7382
filetypes = ["htmlangular" "typescript" "html"];
7483
root_markers = [".git" "package.json"];
84+
on_attach =
85+
lib.generators.mkLuaInline
86+
/*
87+
lua
88+
*/
89+
''
90+
function(client, bufnr)
91+
-- This shit is the most annoying thing ever
92+
client.server_capabilities.insertReplaceSupport = false
93+
client.server_capabilities.renameProvider = false
94+
client.server_capabilities.referencesProvider = false
95+
client.server_capabilities.documentFormattingProvider = false
96+
client.server_capabilities.documentRangeFormattingProvider = false
97+
client.server_capabilities.documentOnTypeFormattingProvider = false
98+
end
99+
'';
75100
};
76101
# csharp = mkDashDefault {
77102
# enable = true;

0 commit comments

Comments
 (0)