blob: fe18e124b47802b5284b534c970ed6c13e8c381f (
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
|
{ pkgs, ... }:
let
inherit (pkgs) stdenv;
version = "3.0.8";
target = if stdenv.isDarwin then
"x86_64-apple-darwin"
else
"x86_64-unknown-linux-musl";
in {
imports = [ ../modules/tabnine.nix ];
programs.tabnine = {
enable = true;
config = {
inherit version;
hide_promotional_message = true;
beta_enabled = "No";
binary_update_interval_seconds = null;
ignore_all_lsp = false;
creation_time = "2020-04-23T10:42:35.732522096Z";
semantic_status = {
typescript = "Enabled";
javascript = "Enabled";
yaml = "Enabled";
};
disable_auto_update = true;
user_understands_that_enabling_tabnine_cloud_sends_code_to_tabnine_servers =
false;
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";
disable_local_when_using_battery = true;
hide_deep_information_message = false;
enable_power_saving_mode = false;
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.dockerfile" = {
command = "docker-langserver";
args = [ "--stdio" ];
};
"language.yaml" = {
command = "yaml-language-server";
args = [ "--stdio" ];
};
"language.haskell" = {
command = "hie";
args = [ "--stdio" ];
};
"language.go" = {
command = "go-langserver";
args = [
"-mode" "stdio"
"-gocodecompletion"
];
};
};
};
home.file.".local/tabnine/${version}/${target}/TabNine" = {
executable = true;
source = (pkgs.fetchurl {
url = "https://update.tabnine.com/${version}/${target}/TabNine";
sha256 = if stdenv.isDarwin then
"0588bbv0mbnx08255z7pw7zizvfirvl5yx3m0mlsvnl3cf6lqz7g"
else
"1wyqmh40zfv92q20vgh4j82mgva05fzdqk1zxr3yalwa6vhhsmib";
});
};
}
|