fix: nixd lsp

This commit is contained in:
DACHXY 2025-01-23 12:50:04 +08:00
parent 65656668d3
commit 5d6f5671a6
4 changed files with 28 additions and 14 deletions

View file

@ -56,14 +56,14 @@ return {
formatting = { formatting = {
command = { "nixfmt" }, command = { "nixfmt" },
}, },
options = { -- options = {
nixos = { -- nixos = {
expr = '(builtins.getFlake ("git+file://" + toString ./.)).nixosConfigurations.k-on.options', -- expr = '(builtins.getFlake ("git+file://" + toString ./.)).nixosConfigurations.k-on.options',
}, -- },
home_manager = { -- home_manager = {
expr = '(builtins.getFlake ("git+file://" + toString ./.)).homeConfigurations."ruixi@k-on".options', -- expr = '(builtins.getFlake ("git+file://" + toString ./.)).homeConfigurations."ruixi@k-on".options',
}, -- },
}, -- },
}, },
}, },
}, },

View file

@ -54,11 +54,20 @@
"nvim . (.*)": " $1", "nvim . (.*)": " $1",
"(.*) - Visual Studio Code": " $1", "(.*) - Visual Studio Code": " $1",
"\\(\\d+\\) Discord (.*)": " $1", "\\(\\d+\\) Discord (.*)": " $1",
// Firefox
"(.*) - YouTube — Mozilla Firefox": " $1", "(.*) - YouTube — Mozilla Firefox": " $1",
"(.*)\\.pdf — Mozilla Firefox": " $1", "(.*)\\.pdf — Mozilla Firefox": " $1",
"(.*) — Mozilla Firefox": " $1", "(.*) — Mozilla Firefox": " $1",
"(.*) - VLC media player": " $1", "(.*) - YouTube Music — Mozilla Firefox": "󰎆 $1",
"(.*) - YouTube Music — Mozilla Firefox": "󰎆 $1"
// Firefox Nightly
"(.*) - YouTube — Firefox Nightly": " $1",
"(.*)\\.pdf — Firefox Nightly": " $1",
"(.*) — Firefox Nightly": " $1",
"(.*) - YouTube Music — Firefox Nightly": "󰎆 $1",
"(.*) - VLC media player": " $1"
} }
}, },
@ -146,6 +155,7 @@
"ignore-list": [ "ignore-list": [
"rofi", "rofi",
"firefox", "firefox",
"firefox-nightly",
"kitty", "kitty",
"jetbrains-studio", "jetbrains-studio",
"Brave-browser", "Brave-browser",
@ -153,7 +163,9 @@
"nemo", "nemo",
"vlc", "vlc",
"com.mitchellh.ghostty", "com.mitchellh.ghostty",
"code" "code",
".virt-manager-wrapped",
"virt-manager"
] ]
}, },

View file

@ -78,8 +78,8 @@ in
# ==== Plugins ==== # # ==== Plugins ==== #
# Overview # Overview
''${mainMod}, o, hyprexpo:expo, toggle'' # ''${mainMod}, o, hyprexpo:expo, toggle''
''${mainMod}, TAB, hyprexpo:expo, toggle'' # ''${mainMod}, TAB, hyprexpo:expo, toggle''
] ]
++ ( ++ (
# workspaces # workspaces

View file

@ -1,4 +1,4 @@
{ pkgs, ... }: { pkgs, inputs, ... }:
{ {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
@ -24,4 +24,6 @@
prettierd prettierd
black black
]; ];
nix.nixPath = [ "nixpkgs=${inputs.nixpkgs}" ];
} }