summaryrefslogtreecommitdiff
path: root/home/common/modules/mimeapps.nix
blob: 3be20084601be3bb6d51b0d00b14c4afdf2a80ab (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ ... }: {
  xdg.mimeApps = {
    enable = true;

    defaultApplications = {
      # text
      "application/javascript" = "nvim.desktop";
      "application/json" = "nvim.desktop";
      "application/sql" = "nvim.desktop";
      "application/xml" = "nvim.desktop";
      "text/css" = "nvim.desktop";
      "text/csv" = "nvim.desktop";
      "text/html" = "nvim.desktop";
      "text/markdown" = "nvim.desktop";
      "text/plain" = "nvim.desktop";
      "text/x-c" = "nvim.desktop";
      "text/x-diff" = "nvim.desktop";
      "text/x-lua" = "nvim.desktop";
      "text/x-meson" = "nvim.desktop";
      "text/x-go" = "nvim.desktop";
      "text/xml" = "nvim.desktop";
      "text/x-patch" = "nvim.desktop";
      "text/x-script.python" = "nvim.desktop";
      "text/x-shellscript" = "nvim.desktop";
      "text/x-python" = "nvim.desktop";

      # misc
      "inode/directory" = "nnn.desktop";
    };
  };
}