@ -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;
|
||||
# }
|
||||
];
|
||||
};
|
||||
};
|
||||
|
@ -24,8 +24,11 @@ in {
|
||||
direnv.enable = true;
|
||||
direnv.silent = true;
|
||||
nix-your-shell.enable = true;
|
||||
keychain.enable = true;
|
||||
keychain.extraFlags = ["--quiet" "--noask"];
|
||||
keychain = {
|
||||
enable = true;
|
||||
# extraFlags = ["--quiet" "--noask"];
|
||||
keys = ["id_ed25519"];
|
||||
};
|
||||
fish = {
|
||||
enable = true;
|
||||
shellAliases = {
|
||||
|
Reference in New Issue
Block a user