From dffae79a9d5273640bb107b6db90e5016dbb82f6 Mon Sep 17 00:00:00 2001 From: Tobias Ostner Date: Tue, 12 May 2026 17:59:49 +0200 Subject: [PATCH] Configure global bun settings --- config/bun/bunfig.toml | 9 +++++++++ flakes/emacs/config/init.el | 19 +------------------ module/home-manager.nix | 1 + 3 files changed, 11 insertions(+), 18 deletions(-) create mode 100644 config/bun/bunfig.toml diff --git a/config/bun/bunfig.toml b/config/bun/bunfig.toml new file mode 100644 index 0000000..4378ad5 --- /dev/null +++ b/config/bun/bunfig.toml @@ -0,0 +1,9 @@ +[install] +minimumReleaseAge = 259200 +minimumReleaseAgeExcludes = [] +auto = "disable" +linker = "isolated" +exact = true + +[install.lockfile] +save = true diff --git a/flakes/emacs/config/init.el b/flakes/emacs/config/init.el index 8c0aa1e..19cccf4 100644 --- a/flakes/emacs/config/init.el +++ b/flakes/emacs/config/init.el @@ -81,26 +81,9 @@ (completion-list-mode . consult-preview-at-point-mode)) (use-package copilot - :hook (prog-mode . copilot-mode) :bind (:map copilot-completion-map ("C-" . copilot-accept-completion) - ("M-C-" . copilot-accept-completion-by-word)) - :commands (copilot-login) - :custom (copilot-indent-offset-warning-disable t) - :config - (add-to-list 'copilot-indentation-alist '(prog-mode 2)) - (defun to/copilot-disable-predicate () - (member major-mode '(shell-mode - eshell-mode - term-mode - vterm-mode - compilation-mode - debugger-mode - dired-mode - compilation-mode - minibuffer-mode - vertico-mode))) - (add-to-list 'copilot-disable-predicates #'to/copilot-disable-predicate)) + ("M-C-" . copilot-accept-completion-by-word))) (use-package corfu :custom diff --git a/module/home-manager.nix b/module/home-manager.nix index c5d960d..48795a4 100644 --- a/module/home-manager.nix +++ b/module/home-manager.nix @@ -136,5 +136,6 @@ }; xdg.configFile."aerospace/aerospace.toml".text = builtins.readFile ../config/aerospace/aerospace.toml; + xdg.configFile.".bunfig.toml".text = builtins.readFile ../config/bun/bunfig.toml; xdg.configFile."ghostty/config".text = builtins.readFile ../config/ghostty/config; }