adding some tweaks to eglot and cape and tempel
This commit is contained in:
parent
03d4799f01
commit
9155495918
3 changed files with 54 additions and 0 deletions
16
init.el
16
init.el
|
@ -2449,6 +2449,7 @@ targets."
|
|||
(setq rustic-format-on-save t
|
||||
rustic-lsp-client 'eglot
|
||||
rustic-clippy-arguments "-- -W clippy::pedantic")
|
||||
(advice-add 'eglot-completion-at-point :around #'cape-wrap-buster)
|
||||
:general
|
||||
(general-def 'normal rustic-mode-map
|
||||
"!" 'rustic-run-shell-command
|
||||
|
@ -2510,6 +2511,17 @@ targets."
|
|||
(rust-mode . eglot-ensure)
|
||||
(rustic-mode . eglot-ensure)
|
||||
(rust-ts-mode . eglot-ensure)
|
||||
:config
|
||||
|
||||
(defun chris/eglot-capf ()
|
||||
(setq-local completion-at-point-functions
|
||||
(list (cape-capf-super
|
||||
#'eglot-completion-at-point
|
||||
#'tempel-expand
|
||||
#'cape-file))))
|
||||
|
||||
(add-hook 'eglot-managed-mode-hook #'chris/eglot-capf)
|
||||
|
||||
:general
|
||||
(general-def 'normal eglot-mode-map
|
||||
"ga" 'eglot-code-actions
|
||||
|
@ -2656,6 +2668,10 @@ targets."
|
|||
:keymaps 'override
|
||||
"od" '(dired-jump :which-key "open dired here")
|
||||
"oD" '(dired :which-key "open dired select"))
|
||||
(chris/leader-keys
|
||||
:states 'normal
|
||||
:keymaps 'override
|
||||
"sF" '(fd-dired :which-key "search in directory with fd"))
|
||||
('normal dired-mode-map
|
||||
"q" 'kill-this-buffer
|
||||
"C-<return>" 'chris/dired-open-xdg
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue