feat: Added rust-analyzer

This commit is contained in:
uttarayan21
2025-07-14 23:15:04 +05:30
parent 4970071078
commit e1bb419c66
4 changed files with 28 additions and 7 deletions

View File

@@ -18,6 +18,7 @@
background = "#000000";
shell = "${pkgs.fish}/bin/fish";
hide_window_decorations = "yes";
cursor_trail = 3;
};
shellIntegration.enableFishIntegration = true;
darwinLaunchOptions = [

View File

@@ -29,7 +29,7 @@
./tuifeed.nix
./yazi.nix
./zoxide.nix
./mpris-scrobbler.nix
# ./mpris-scrobbler.nix
./omnix.nix
# ./ddcbacklight.nix
./yt-dlp.nix

View File

@@ -1,8 +1,9 @@
{pkgs, ...}: {
home.packages = [
{
pkgs,
lib,
...
}: {
home.packages = lib.optionals pkgs.stdenv.isLinux [
pkgs.mpris-scrobbler
];
# services.mpd = {
# enable = pkgs.stdenv.isLinux;
# };
}

View File

@@ -381,7 +381,7 @@ in {
};
};
rustaceanvim = {
enable = true;
enable = false;
settings = {
server = {
on_attach = rawLua ''
@@ -489,6 +489,25 @@ in {
slint_lsp.enable = true;
sourcekit.enable = true;
openscad_lsp.enable = true;
rust_analyzer = {
enable = true;
installCargo = false;
installRustc = false;
settings = {
inlayHints = {
typeHints.enable = true;
};
files.exclude = [
".cargo/"
".direnv/"
".git/"
".vcpkg/"
"node_modules/"
"target/"
"vendor/"
];
};
};
};
onAttach =
/*