languages/csharp: add razor support#1498
Conversation
|
This pull request is the same as #1271, but with updated code. The branch Sorry for the inconvenience. |
modules/plugins/languages/csharp.nix
Outdated
| # functionality, this will be the default. | ||
| defaultServers = ["csharp_ls"]; | ||
| # NOTE: roslyn is the most feature-rich option, and its Razor integration is better than csharp-ls (which only supports .cshtml). | ||
| defaultServers = ["roslyn_ls"]; |
There was a problem hiding this comment.
is there a reason for changing the default server anymore? since roslyn_ls alone also doesn't support razor right?
00ccf7a to
0222767
Compare
horriblename
left a comment
There was a problem hiding this comment.
One last change, I promise :)
thanks for the work so far
modules/plugins/languages/csharp.nix
Outdated
| event = [ | ||
| { | ||
| event = "BufEnter"; | ||
| pattern = ["*.cs" "*.razor"]; | ||
| } | ||
| ]; |
There was a problem hiding this comment.
I don't think this should be lazy loaded, as upstream don't seem to recommend it themselves, and the plugin doesn't seem to do a whole lot at startup anyways
if you still think it's necessary, ft = ["c_sharp" "razor" "cshtml"] should be used I believe (spelling for c_sharp may be wrong idk)
0222767 to
e0ff93e
Compare
e0ff93e to
cbcd82a
Compare
cbcd82a to
8b7f710
Compare
Adds razor support for `roslyn` and `csharp_ls` servers
8b7f710 to
9f8a0fd
Compare
Adds razor support for
roslynandcsharp_lsserversSanity Checking
nix fmt).#nix(default package).#maximal.#docs-html(manual, must build).#docs-linkcheck(optional, please build if adding links)x86_64-linuxaarch64-linuxx86_64-darwinaarch64-darwin