Configure global bun settings
This commit is contained in:
parent
1436f70db6
commit
dffae79a9d
3 changed files with 11 additions and 18 deletions
9
config/bun/bunfig.toml
Normal file
9
config/bun/bunfig.toml
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
[install]
|
||||||
|
minimumReleaseAge = 259200
|
||||||
|
minimumReleaseAgeExcludes = []
|
||||||
|
auto = "disable"
|
||||||
|
linker = "isolated"
|
||||||
|
exact = true
|
||||||
|
|
||||||
|
[install.lockfile]
|
||||||
|
save = true
|
||||||
|
|
@ -81,26 +81,9 @@
|
||||||
(completion-list-mode . consult-preview-at-point-mode))
|
(completion-list-mode . consult-preview-at-point-mode))
|
||||||
|
|
||||||
(use-package copilot
|
(use-package copilot
|
||||||
:hook (prog-mode . copilot-mode)
|
|
||||||
:bind (:map copilot-completion-map
|
:bind (:map copilot-completion-map
|
||||||
("C-<tab>" . copilot-accept-completion)
|
("C-<tab>" . copilot-accept-completion)
|
||||||
("M-C-<tab>" . copilot-accept-completion-by-word))
|
("M-C-<tab>" . 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))
|
|
||||||
|
|
||||||
(use-package corfu
|
(use-package corfu
|
||||||
:custom
|
:custom
|
||||||
|
|
|
||||||
|
|
@ -136,5 +136,6 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
xdg.configFile."aerospace/aerospace.toml".text = builtins.readFile ../config/aerospace/aerospace.toml;
|
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;
|
xdg.configFile."ghostty/config".text = builtins.readFile ../config/ghostty/config;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue