summary refs log tree commit diff stats
path: root/user/settings/tabnine.nix
blob: 612303a49000b866b2c4cfa22dfef4c6287d0f63 (plain)
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
{ config
, pkgs
, ...
}: {
  home.packages = with pkgs; [
    tabnine
  ];
  programs.tabnine = {
    enable = pkgs.lib.mkDefault true;
    config = {
      version = pkgs.tabnine.version;

      hide_promotional_message = true;
      beta_enabled = "No";
      ignore_all_lsp = false;
      creation_time = "2020-12-28T21:42:35.732522096Z";
      semantic_status = {
        css = "Enabled";
        dockerfile = "Enabled";
        go = "Enabled";
        haskell = "Enabled";
        html = "Enabled";
        javascript = "Enabled";
        ruby = "Enabled";
        nix = "Enabled";
        scss = "Enabled";
        typescript = "Enabled";
        yaml = "Enabled";
      };
      disable_auto_update = true;
      binary_update_interval_seconds = 365 * 24 * 3600;
      deep_completions_work_mode = "LocalOnly";
      hosted_deep_completions_enabled = "Disabled";
      tabnine_cloud_certificate_domain = null;
      tabnine_cloud_host = null;
      tabnine_cloud_port = null;
      cloud_whitelist = [ ];
      api_key = null;
      api_key_service_level = null;
      api_base_url = null;
      local_enabled = "Yes";
      local_indexing = null;
      local_model_size = null;
      disable_local_when_using_battery = false;
      hide_deep_information_message = false;
      enable_power_saving_mode = false;
      enable_telemetry = false;
      generation = 0;
      rate_limit_interval_seconds = null;
      rate_limit_amount = null;
    };
    lspConfig = {
      "language.typescript" = {
        command = "typescript-language-server";
        args = [ "--stdio" ];
      };
      "language.javascript" = {
        command = "javascript-typescript-stdio";
        args = [ "--stdio" ];
      };
      "language.css" = {
        command = "css-languageserver";
        args = [ "--stdio" ];
      };
      "language.scss" = {
        command = "css-languageserver";
        args = [ "--stdio" ];
      };
      "language.html" = {
        command = "html-languageserver";
        args = [ "--stdio" ];
      };
      "language.nix" = {
        command = "nil";
        args = [ "--stdio" ];
      };
      "language.dockerfile" = {
        command = "docker-langserver";
        args = [ "--stdio" ];
      };
      "language.ruby" = {
        command = "solargraph";
        args = [ "stdio" ];
      };
      "language.yaml" = {
        command = "yaml-language-server";
        args = [ "--stdio" ];
      };
      "language.haskell" = {
        command = "hie";
        args = [ "--stdio" ];
      };
      "language.go" = {
        command = "gopls";
        args = [
          "server"
        ];
      };
    };
  };
}