Add rust-analyzer and marksman to kak-lsp

This commit is contained in:
Natsu Kagami 2024-07-15 21:24:50 +02:00
parent 0f2686f9a7
commit 8bd64fbe79
Signed by: nki
GPG key ID: 55A032EB38B49ADB
2 changed files with 9 additions and 24 deletions

View file

@ -154,6 +154,7 @@ in
args = [ "--synctex-forward" "%l:1:%f" "%p" "-x" "${./kaktex} jump %%{input} %%{line} %%{column}" ]; args = [ "--synctex-forward" "%l:1:%f" "%p" "-x" "${./kaktex} jump %%{input} %%{line} %%{column}" ];
}); });
}; };
package = pkgs.texlab;
}; };
programs.kak-lsp.languageServers.typst-lsp = { programs.kak-lsp.languageServers.typst-lsp = {
command = "typst-lsp"; command = "typst-lsp";
@ -168,6 +169,14 @@ in
command = "marksman"; command = "marksman";
filetypes = [ "markdown" ]; filetypes = [ "markdown" ];
roots = [ ".marksman.toml" ".git" ]; roots = [ ".marksman.toml" ".git" ];
package = pkgs.marksman;
};
programs.kak-lsp.languageServers.rust-analyzer = {
args = [ ];
command = "rust-analyzer";
filetypes = [ "rust" ];
roots = [ "Cargo.toml" ];
package = pkgs.rust-analyzer;
}; };
programs.my-kakoune.tree-sitter.extraAliases = { programs.my-kakoune.tree-sitter.extraAliases = {

View file

@ -35,24 +35,6 @@ let
roots = [ "Setup.hs" "stack.yaml" "*.cabal" "package.yaml" ]; roots = [ "Setup.hs" "stack.yaml" "*.cabal" "package.yaml" ];
settings_section = "haskell"; settings_section = "haskell";
}; };
texlab = {
command = "texlab";
filetypes = [ "latex" ];
roots = [ ".git" "main.tex" "all.tex" ];
settings_section = "texlab";
settings.texlab = {
build.executable = "latexmk";
build.args = [ "-pdf" "-shell-escape" "-interaction=nonstopmode" "-synctex=1" "%f" ];
build.forwardSearchAfter = true;
build.onSave = true;
forwardSearch = {
executable = "/Applications/Skim.app/Contents/SharedSupport/displayline";
args = [ "-r" "-g" "%l" "%p" "%f" ];
};
};
};
nil = { nil = {
command = "${pkgs.nil}/bin/nil"; command = "${pkgs.nil}/bin/nil";
filetypes = [ "nix" ]; filetypes = [ "nix" ];
@ -67,12 +49,6 @@ let
offset_encoding = "utf-8"; offset_encoding = "utf-8";
roots = [ "requirements.txt" "setup.py" ".git" ".hg" ]; roots = [ "requirements.txt" "setup.py" ".git" ".hg" ];
}; };
rust-analyzer = {
args = [ ];
command = "rust-analyzer";
filetypes = [ "rust" ];
roots = [ "Cargo.toml" ];
};
}; };
semantic_tokens.faces = [ semantic_tokens.faces = [
## Items ## Items