user/settings/tabnine.nix (view raw)
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 | { pkgs, ... }: let inherit (pkgs) stdenv; version = "2.6.0"; 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"; ignore_all_lsp = false; creation_time = "2020-01-13T15: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 "1jn7lqmqipbhandy7ppbrlggdsbkjb57djr04qgl60y1vks8hg57" else "1d9ydwcl4pdql14np2xbdr71slddawi53ajwxgnqw9hl7h1398xc"; }); }; } |