summary refs log tree commit diff stats
path: root/user/settings/tabnine.nix
blob: 377b8217e2df9785d6f0a2348c4600289b494f4e (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
102
103
104
105
106
107
108
109
110
111
{ config
, pkgs
, ...
}: {
  home.packages = with pkgs; [
    tabnine
  ];
  programs.tabnine = {
    enable = pkgs.lib.mkDefault true;
    config = {
      version = pkgs.tabnine.version;

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