Compare commits
2 Commits
ddb1d86a7f
...
0875ee822d
Author | SHA1 | Date | |
---|---|---|---|
0875ee822d | |||
d9c3650e4a |
@ -16,7 +16,7 @@ import = ["~/.config/alacritty/black.toml"]
|
|||||||
|
|
||||||
[window]
|
[window]
|
||||||
|
|
||||||
opacity = 0.93
|
opacity = 1
|
||||||
padding.x = 10
|
padding.x = 10
|
||||||
# padding.y = 10
|
# padding.y = 10
|
||||||
decorations = "Full"
|
decorations = "Full"
|
||||||
|
@ -169,3 +169,31 @@
|
|||||||
(map! :leader
|
(map! :leader
|
||||||
:desc "Search by grep" ; This description shows in which-key popups
|
:desc "Search by grep" ; This description shows in which-key popups
|
||||||
"r g" #'consult-ripgrep)
|
"r g" #'consult-ripgrep)
|
||||||
|
|
||||||
|
;; accept completion from copilot and fallback to company
|
||||||
|
(use-package! copilot
|
||||||
|
:hook (prog-mode . copilot-mode)
|
||||||
|
:bind (:map copilot-completion-map
|
||||||
|
("<tab>" . 'copilot-accept-completion)
|
||||||
|
("TAB" . 'copilot-accept-completion)
|
||||||
|
("C-TAB" . 'copilot-accept-completion-by-word)
|
||||||
|
("C-<tab>" . 'copilot-accept-completion-by-word))
|
||||||
|
:config
|
||||||
|
(add-to-list 'copilot-indentation-alist '(prog-mode 2))
|
||||||
|
(add-to-list 'copilot-indentation-alist '(org-mode 2))
|
||||||
|
(add-to-list 'copilot-indentation-alist '(text-mode 2))
|
||||||
|
(add-to-list 'copilot-indentation-alist '(closure-mode 2))
|
||||||
|
(add-to-list 'copilot-indentation-alist '(emacs-lisp-mode 2)))
|
||||||
|
|
||||||
|
(after! (evil copilot)
|
||||||
|
;; Define the custom function that either accepts the completion or does the default behavior
|
||||||
|
(defun my/copilot-tab-or-default ()
|
||||||
|
(interactive)
|
||||||
|
(if (and (bound-and-true-p copilot-mode)
|
||||||
|
;; Add any other conditions to check for active copilot suggestions if necessary
|
||||||
|
)
|
||||||
|
(copilot-accept-completion)
|
||||||
|
(evil-insert 1))) ; Default action to insert a tab. Adjust as needed.
|
||||||
|
|
||||||
|
;; Bind the custom function to <tab> in Evil's insert state
|
||||||
|
(evil-define-key 'insert 'global (kbd "<tab>") 'my/copilot-tab-or-default))
|
||||||
|
@ -97,7 +97,7 @@
|
|||||||
(eval +overlay) ; run code, run (also, repls)
|
(eval +overlay) ; run code, run (also, repls)
|
||||||
lookup ; navigate your code and its documentation
|
lookup ; navigate your code and its documentation
|
||||||
lsp ; M-x vscode
|
lsp ; M-x vscode
|
||||||
;;magit ; a git porcelain for Emacs
|
magit ; a git porcelain for Emacs
|
||||||
make ; run make tasks from Emacs
|
make ; run make tasks from Emacs
|
||||||
;;pass ; password manager for nerds
|
;;pass ; password manager for nerds
|
||||||
pdf ; pdf enhancements
|
pdf ; pdf enhancements
|
||||||
|
@ -48,3 +48,6 @@
|
|||||||
;; (unpin! pinned-package another-pinned-package)
|
;; (unpin! pinned-package another-pinned-package)
|
||||||
;; ...Or *all* packages (NOT RECOMMENDED; will likely break things)
|
;; ...Or *all* packages (NOT RECOMMENDED; will likely break things)
|
||||||
;; (unpin! t)
|
;; (unpin! t)
|
||||||
|
|
||||||
|
(package! copilot
|
||||||
|
:recipe (:host github :repo "copilot-emacs/copilot.el" :files ("*.el")))
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
bass source /etc/profile
|
bass source /etc/profile
|
||||||
fish_add_path "$HOME/.local/bin"
|
fish_add_path "$HOME/.local/bin"
|
||||||
fish_add_path "$HOME/.cargo/bin"
|
fish_add_path "$HOME/.cargo/bin"
|
||||||
|
fish_add_path "$HOME/go/bin"
|
||||||
source "$HOME/.cargo/env.fish"
|
source "$HOME/.cargo/env.fish"
|
||||||
|
|
||||||
set -gx EDITOR "nvim"
|
set -gx EDITOR "nvim"
|
||||||
@ -33,7 +34,7 @@ if status is-interactive
|
|||||||
alias protontricks='flatpak run com.github.Matoking.protontricks'
|
alias protontricks='flatpak run com.github.Matoking.protontricks'
|
||||||
alias protontricks-launch='flatpak run --command=protontricks-launch com.github.Matoking.protontricks'
|
alias protontricks-launch='flatpak run --command=protontricks-launch com.github.Matoking.protontricks'
|
||||||
|
|
||||||
alias generate_token="curl -u jabuxas https://paste.jabuxas.xyz | wl-copy"
|
alias generate_token="curl -u jabuxas https://paste.jabuxas.com | wl-copy"
|
||||||
end
|
end
|
||||||
|
|
||||||
function pst
|
function pst
|
||||||
@ -55,7 +56,7 @@ function pst
|
|||||||
set file "$argv[1]"
|
set file "$argv[1]"
|
||||||
end
|
end
|
||||||
|
|
||||||
curl -F "file=@$file" -H "X-Auth: $(cat ~/.key)" https://paste.jabuxas.xyz
|
curl -F "file=@$file" -H "X-Auth: $(cat ~/.key)" https://paste.jabuxas.com
|
||||||
|
|
||||||
if command test -p /dev/stdin
|
if command test -p /dev/stdin
|
||||||
rm "$file"
|
rm "$file"
|
||||||
@ -90,7 +91,7 @@ function pstf
|
|||||||
set file "$argv[1]"
|
set file "$argv[1]"
|
||||||
end
|
end
|
||||||
|
|
||||||
curl -F "file=@$file" -Fsecret= -H "X-Auth: $(cat ~/.key)" https://paste.jabuxas.xyz
|
curl -F "file=@$file" -Fsecret= -H "X-Auth: $(cat ~/.key)" https://paste.jabuxas.com
|
||||||
|
|
||||||
if command test -p /dev/stdin
|
if command test -p /dev/stdin
|
||||||
rm "$file"
|
rm "$file"
|
||||||
|
@ -40,4 +40,4 @@ SETUVAR fish_pager_color_selected_background:\x2d\x2dbackground\x3dbrblack
|
|||||||
SETUVAR fish_pager_color_selected_completion:\x1d
|
SETUVAR fish_pager_color_selected_completion:\x1d
|
||||||
SETUVAR fish_pager_color_selected_description:\x1d
|
SETUVAR fish_pager_color_selected_description:\x1d
|
||||||
SETUVAR fish_pager_color_selected_prefix:\x1d
|
SETUVAR fish_pager_color_selected_prefix:\x1d
|
||||||
SETUVAR fish_user_paths:/yang/\x2emillennium/ext/bin\x1e/yang/\x2ecargo/bin\x1e/yang/\x2elocal/bin
|
SETUVAR fish_user_paths:/yang/go/bin\x1e/yang/\x2emillennium/ext/bin\x1e/yang/\x2ecargo/bin\x1e/yang/\x2elocal/bin
|
||||||
|
@ -3,7 +3,7 @@ exec {
|
|||||||
gsettings set $gnome-schema gtk-theme "Material-Black-Blueberry-LA"
|
gsettings set $gnome-schema gtk-theme "Material-Black-Blueberry-LA"
|
||||||
gsettings set $gnome-schema icon-theme "We10X-black-dark"
|
gsettings set $gnome-schema icon-theme "We10X-black-dark"
|
||||||
gsettings set $gnome-schema cursor-theme 'Simp1e'
|
gsettings set $gnome-schema cursor-theme 'Simp1e'
|
||||||
gsettings set $gnome-schema font-name 'Terminess Nerd Font 12'
|
gsettings set $gnome-schema font-name 'CartographCF Nerd Font 12'
|
||||||
xrandr --output HDMI-A-1 --primary
|
xrandr --output HDMI-A-1 --primary
|
||||||
waybar -c ~/.config/waybar/config.jsonc &
|
waybar -c ~/.config/waybar/config.jsonc &
|
||||||
autotiling &
|
autotiling &
|
||||||
|
Loading…
Reference in New Issue
Block a user