Signed-off-by: unexplrd <unexplrd@linerds.us>
This commit is contained in:
2025-03-25 00:22:39 +02:00
parent 98039c2ea0
commit 8464dc0084
11 changed files with 59 additions and 92 deletions

View File

@ -17,10 +17,14 @@ in {
defaultEditor = true;
settings = {
editor = {
line-number = "relative";
bufferline = "multiple";
cursorline = true;
lsp.display-messages = true;
inline-diagnostics.cursor-line = "warning";
line-number = "relative";
lsp = {
display-messages = true;
display-inlay-hints = true;
};
cursor-shape = {
insert = "bar";
normal = "block";
@ -60,9 +64,9 @@ in {
language-server = with lib; {
clangd.command = "${pkgs.clang-tools}/bin/clangd";
markdown-oxide.command = getExe pkgs.markdown-oxide;
nil.command = getExe pkgs.nil;
# nil.command = getExe pkgs.nil;
nixd.command = getExe pkgs.nixd;
rust-analyzer.command = getExe pkgs.rust-analyzer;
# rust-analyzer.command = getExe pkgs.rust-analyzer;
# texlab.command = getExe pkgs.texlab;
tinymist.command = getExe pkgs.tinymist;
};
@ -70,7 +74,7 @@ in {
{
name = "nix";
auto-format = true;
formatter.command = "${pkgs.alejandra}/bin/alejandra";
formatter.command = lib.getExe pkgs.alejandra;
language-servers = ["nixd"];
}
# {
@ -101,12 +105,12 @@ in {
auto-format = true;
formatter.command = "${pkgs.clang-tools}/bin/clang-format";
}
{
name = "rust";
auto-format = true;
language-servers = ["rust-analyzer"];
formatter.command = "${pkgs.rustfmt}/bin/rustfmt";
}
# {
# name = "rust";
# auto-format = true;
# language-servers = ["rust-analyzer"];
# formatter.command = lib.getExe pkgs.rustfmt;
# }
];
};
};