Skip to content

Commit

Permalink
chore: misc
Browse files Browse the repository at this point in the history
  • Loading branch information
yqrashawn committed Jan 20, 2025
1 parent 6c0b480 commit ebc9447
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 5 deletions.
9 changes: 5 additions & 4 deletions .doom.d/autoload.el
Original file line number Diff line number Diff line change
Expand Up @@ -357,14 +357,15 @@ _g_ gfm _o_ org _m_ markdown

;;;###autoload
(defun +complete-at-point (&optional args)
"use ,, to trigger +complete-at-point, use ,. to complete with copilot"
(interactive)
(if (eq major-mode 'vterm-mode)
(vterm--self-insert)
(cond
((and (eq (preceding-char) ?,) (boundp 'pabbrev-marker) pabbrev-marker)
(progn (delete-char -1 nil)
(call-interactively #'pabbrev-expand-maybe)
(pabbrev-delete-last-suggestion)))
;; ((and (eq (preceding-char) ?,) (boundp 'pabbrev-marker) pabbrev-marker)
;; (progn (delete-char -1 nil)
;; (call-interactively #'pabbrev-expand-maybe)
;; (pabbrev-delete-last-suggestion)))

((and (eq (preceding-char) ?,) (modulep! :editor evil) (modulep! :completion corfu) corfu-mode)
(progn (delete-char -1 nil)
Expand Down
4 changes: 3 additions & 1 deletion .doom.d/lang.el
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@
(cl-letf (((symbol-function 'nim-log) (lambda (&rest _args))))
(funcall orig-fn method callback)))))

(setq! lsp-copilot-enabled nil)
(after! lsp-mode
;; (setq! lsp-copilot-enabled nil)
;; https://github.com/emacs-lsp/lsp-mode/issues/3577#issuecomment-1709232622
(delete 'lsp-terraform lsp-client-packages)
(setq! lsp-completion-provider :none)
Expand All @@ -76,9 +76,11 @@
(add-hook! 'lsp-completion-mode-hook :append '++lsp-init-company-backends-h t))
;; (delq! 'lsp-ui-mode lsp-mode-hook)
(setq!
lsp-copilot-enabled nil
;; lsp-imenu-sort-methods '(position)
;; lsp-eldoc-enable-hover nil
;; lsp-disabled-clients '(javascript-typescript-langserver)
lsp-disabled-clients '(copilot-ls graphql-lsp)
lsp-enable-file-watchers nil
lsp-file-watch-threshold 200
lsp-bash-highlight-parsing-errors t
Expand Down
2 changes: 2 additions & 0 deletions .doom.d/map.el
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@
[remap async-shell-command] #'detached-shell-command
[remap compile] #'detached-compile
[remap recompile] #'detached-compile-recompile
(:map doom-leader-open-map
:desc "proced" "p" #'proced)
(:leader
(:prefix-map ("d" . "Detached")
:desc "View" "l" #'detached-view-session
Expand Down
1 change: 1 addition & 0 deletions .doom.d/prog.el
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ It is a fallback for when which-func-functions and `add-log-current-defun' retur
clojurec-mode) . copilot-mode)
:init
(setq! copilot-max-char -1
copilot-idle-delay 10
;; copilot-version "1.41.0"
copilot-indent-offset-warning-disable t)
:config
Expand Down
Binary file modified modules/yqrashawn/home-manager/dotfiles/.authinfo.gpg
Binary file not shown.
5 changes: 5 additions & 0 deletions modules/yqrashawn/home-manager/dotfiles/aerospace.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ M = '^DELL'
4 = '^DELL'
5 = '^DELL'

[[on-window-detected]]
if.app-id = 'org.mozilla.firefoxdeveloperedition'
if.window-title-regex-substring = '^https://www\.perplexity\.ai - Perplexity$'
run = 'layout floating'

### termial workspace
[[on-window-detected]]
if.app-id = 'net.kovidgoyal.kitty'
Expand Down

0 comments on commit ebc9447

Please sign in to comment.