Have kak-lsp support metals
This commit is contained in:
parent
87d2f63211
commit
5f4668b67b
11
flake.lock
11
flake.lock
|
@ -701,15 +701,16 @@
|
||||||
"kak-lsp": {
|
"kak-lsp": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1693610654,
|
"lastModified": 1694964666,
|
||||||
"narHash": "sha256-BTyDytJJMJsDvqjX4wV3e0t2XXU5Wz0xiLwQepzFDKY=",
|
"narHash": "sha256-0P3LvqId56qYA6qgI/p2YjKotb/Zdaz8ELvWFH0glDY=",
|
||||||
"owner": "kak-lsp",
|
"owner": "natsukagami",
|
||||||
"repo": "kak-lsp",
|
"repo": "kak-lsp",
|
||||||
"rev": "ae3d052928a482620f62fe3ee866ad072808bac1",
|
"rev": "ceecb7656bca8b042f8a8c19d737eff3bfe10829",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "kak-lsp",
|
"owner": "natsukagami",
|
||||||
|
"ref": "metals-support",
|
||||||
"repo": "kak-lsp",
|
"repo": "kak-lsp",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
|
|
|
@ -48,7 +48,7 @@
|
||||||
# --- Sources
|
# --- Sources
|
||||||
kakoune.url = github:mawww/kakoune;
|
kakoune.url = github:mawww/kakoune;
|
||||||
kakoune.flake = false;
|
kakoune.flake = false;
|
||||||
kak-lsp.url = github:kak-lsp/kak-lsp;
|
kak-lsp.url = github:natsukagami/kak-lsp/metals-support;
|
||||||
kak-lsp.flake = false;
|
kak-lsp.flake = false;
|
||||||
nixos-m1.url = github:tpwrules/nixos-apple-silicon;
|
nixos-m1.url = github:tpwrules/nixos-apple-silicon;
|
||||||
nixos-m1.inputs.nixpkgs.follows = "nixpkgs";
|
nixos-m1.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
|
@ -80,11 +80,13 @@ in
|
||||||
programs.kak-lsp.languages.scala = {
|
programs.kak-lsp.languages.scala = {
|
||||||
command = "metals";
|
command = "metals";
|
||||||
filetypes = [ "scala" ];
|
filetypes = [ "scala" ];
|
||||||
roots = [ "build.sbt" ];
|
roots = [ "build.sbt" "build.sc" ];
|
||||||
settings_section = "metals";
|
settings_section = "metals";
|
||||||
settings.metals = {
|
settings.metals = {
|
||||||
enableSemanticHighlighting = true;
|
enableSemanticHighlighting = true;
|
||||||
showInferredType = true;
|
showInferredType = true;
|
||||||
|
decorationProvider = true;
|
||||||
|
inlineDecorationProvider = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
programs.kak-lsp.languages.latex = {
|
programs.kak-lsp.languages.latex = {
|
||||||
|
|
|
@ -104,7 +104,7 @@ hook global WinSetOption filetype=(racket|rust|python|go|javascript|typescript|c
|
||||||
hook window BufWritePre .* %{ lsp-formatting-sync }
|
hook window BufWritePre .* %{ lsp-formatting-sync }
|
||||||
}
|
}
|
||||||
|
|
||||||
hook global WinSetOption filetype=(rust) %{
|
hook global WinSetOption filetype=(rust|scala) %{
|
||||||
# Enable inlay hints
|
# Enable inlay hints
|
||||||
lsp-inlay-hints-enable window
|
lsp-inlay-hints-enable window
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue