all repos — nixfiles @ df3d030e65b6682a39ba426e1a62f6a581fb9ae6

System and user configuration, managed by nix and home-manager

remove tabnine

Alan Pearce
commit

df3d030e65b6682a39ba426e1a62f6a581fb9ae6

parent

6ad10b9f40527a2e7c279734361fc0e13f5ee373

D .tabnine_root

Not showing binary file.

M flake.nixflake.nix
@@ -163,7 +163,6 @@ homeConfigurations."alan@marvin" = mkHomeConfiguration {
system = "aarch64-darwin"; modules = [ ./user/hosts/marvin.nix - ./private/tabnine.nix ./private/ssh.nix ]; };
@@ -171,7 +170,6 @@ homeConfigurations."alin@prefect" = mkHomeConfiguration {
system = "x86_64-linux"; modules = [ ./user/hosts/prefect.nix - ./private/tabnine.nix ./private/ssh.nix ]; };
M user/config.nixuser/config.nix
@@ -9,7 +9,6 @@ builtins.elem (lib.getName pkg) [
"beeper" "discord" "input-fonts" - "tabnine" ]; input-fonts.acceptLicense = true; permittedInsecurePackages = [ ];
M user/hosts/marvin.nixuser/hosts/marvin.nix
@@ -14,13 +14,11 @@ ../settings/fish.nix
../settings/git.nix ../settings/nixpkgs.nix ../settings/ssh.nix - ../settings/tabnine.nix ../settings/workstation.nix ../settings/user-interface.nix ../settings/nix.nix ../settings/zed.nix ../../private/ssh.nix - ../../private/tabnine.nix ../../private/llm.nix ];
M user/hosts/prefect.nixuser/hosts/prefect.nix
@@ -18,7 +18,6 @@ ../settings/music.nix
../settings/nixos.nix ../settings/passwords.nix ../settings/ssh.nix - ../settings/tabnine.nix ../settings/user-interface.nix ../settings/zed.nix ];
D user/modules/tabnine.nix
@@ -1,73 +0,0 @@
-{ - config, - lib, - pkgs, - ... -}: -with lib; -let - inherit (pkgs) stdenv; - tomlFormat = pkgs.formats.toml { }; - cfg = config.programs.tabnine; -in -{ - options.programs.tabnine = { - enable = mkEnableOption "TabNine, Smart Compose for code."; - - configDir = mkOption { - type = types.str; - default = - if stdenv.isDarwin then "Library/Preferences/TabNine" else "${config.xdg.configHome}/TabNine"; - description = '' - Location of TabNine configuration directory relative to \$HOME - ''; - }; - - config = mkOption { - type = types.attrs; - default = { }; - description = '' - TabNine configuration written to - <filename>\${configDir}/tabnine_config.json</filename> - ''; - }; - - registrationKey = mkOption { - type = types.str; - description = '' - Registration key for TabNine. For one-time-purchase users, this should be the e-mail address and base-64-encoded key joined together without spacing. - ''; - }; - - lspConfig = mkOption { - type = tomlFormat.type; - default = { }; - description = '' - LSP Server configuration written to - <filename>\${configDir}/TabNine.toml</filename> - </para><para> - ''; - }; - }; - - config = mkIf cfg.enable { - home.file."${cfg.configDir}/TabNine.toml" = { - source = (tomlFormat.generate "TabNine.toml" cfg.lspConfig); - }; - home.file."${cfg.configDir}/tabnine_config.json" = { - source = pkgs.writeText "tabnine_config.json" (builtins.toJSON cfg.config); - }; - home.file."${cfg.configDir}/registration_key" = { - text = cfg.registrationKey; - }; - - programs.nixvim.plugins = { - blink-compat.enable = true; - cmp-tabnine.enable = true; - }; - - programs.emacs.extraPackages = epkgs: [ - epkgs.tabnine - ]; - }; -}
M user/settings/development/base.nixuser/settings/development/base.nix
@@ -4,7 +4,6 @@ pkgs,
... }: { - imports = [ ../../modules/tabnine.nix ]; home.packages = with pkgs; [
M user/settings/emacs.nixuser/settings/emacs.nix
@@ -186,12 +186,6 @@ };
lsp-mode = self.melpaPackages.lsp-mode.overrideAttrs { LSP_USE_PLISTS = "true"; # must be set in early-init }; - tabnine = self.melpaPackages.tabnine.overrideAttrs (attrs: { - postPatch = (attrs.postPatch or "") + '' - substituteInPlace tabnine-core.el \ - --replace '(tabnine--executable-path)' '"${pkgs.tabnine}/bin/TabNine"' - ''; - }); }; extraConfig = '' (with-eval-after-load 'editorconfig
M user/settings/emacs/init.eluser/settings/emacs/init.el
@@ -650,27 +650,6 @@ :config (progn
(setq kind-icon-default-face 'corfu-default) (add-to-list 'corfu-margin-formatters #'kind-icon-margin-formatter))) -(use-package tabnine-core - :config (progn - (with-demoted-errors "TabNine error: %s" - (global-tabnine-mode)) - - (define-key tabnine-completion-map (kbd "TAB") #'tabnine-accept-completion) - (define-key tabnine-completion-map (kbd "<tab>") #'tabnine-accept-completion) - - (define-key tabnine-completion-map (kbd "M-f") #'tabnine-accept-completion-by-word) - (define-key tabnine-completion-map (kbd "M-<return>") #'tabnine-accept-completion-by-line) - (define-key tabnine-completion-map (kbd "C-e") #'tabnine-accept-completion-by-line) - (define-key tabnine-completion-map (kbd "<right>") #'tabnine-accept-completion-by-line) - - (define-key tabnine-completion-map (kbd "C-g") #'tabnine-clear-overlay) - (define-key tabnine-completion-map (kbd "M-[") #'tabnine-next-completion) - (define-key tabnine-completion-map (kbd "M-]") #'tabnine-previous-completion)) - :init (progn - (advice-add 'tabnine-start-process :around #'quiet) - - (add-hook 'kill-emacs-hook #'tabnine-kill-process))) - (use-package tempel :general ("M-+" #'tempel-complete ;; Alternative tempel-expand "M-*" #'tempel-insert
M user/settings/git.nixuser/settings/git.nix
@@ -119,7 +119,6 @@ "*_flymake.*"
"*~" "\#*\#" ".\#*" - ".tabnine_root" ".zed" ".dir-locals.el" ];
D user/settings/tabnine.nix
@@ -1,126 +0,0 @@
-{ - 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; - exclude_file_masks = true; - force_local_hub = true; - generation = 0; - guuid = null; - gusr.gcgdc = "0000000000000000000000000000000000000000000000000000000000000000"; - has_git_repos = null; - heartbeat_interval_seconds = null; - hide_deep_information_message = false; - hide_promotional_message = true; - hosted_deep_completions_enabled = "Disabled"; - ignore_all_lsp = false; - inline_suggestions_mode = true; - inline_suggestions_mode_clients = null; - last_service_level = null; - line_suggestions = true; - local_enabled = "Yes"; - local_indexing = null; - local_model_size = null; - manually_selected_model = null; - model_hash_override = null; - num_of_suggestions = 5; - omit_prefix_suggestions = null; - onboarding = { - model_type = null; - skipped_login = true; - completed = true; - }; - rate_limit_amount = null; - rate_limit_interval_seconds = null; - rlhf = 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; - tabnine_hub_port = null; - use_specialized_model_if_available = true; - user_understands_that_enabling_tabnine_cloud_sends_code_to_tabnine_servers = false; - }; - 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" - ]; - }; - }; - }; -}