Remove C lang stuff and corfu-doc.
This commit is contained in:
parent
9596613b31
commit
6ef402364f
17
config.el
17
config.el
@ -19,13 +19,6 @@
|
|||||||
(when (modulep! +minibuffer)
|
(when (modulep! +minibuffer)
|
||||||
(add-hook 'minibuffer-setup-hook #'+corfu--enable-in-minibuffer))
|
(add-hook 'minibuffer-setup-hook #'+corfu--enable-in-minibuffer))
|
||||||
|
|
||||||
;; Dirty hack to get c completion running
|
|
||||||
;; Discussion in https://github.com/minad/corfu/issues/34
|
|
||||||
(when (and (modulep! :lang cc)
|
|
||||||
(equal tab-always-indent 'complete))
|
|
||||||
(map! :map c-mode-base-map
|
|
||||||
:i [remap c-indent-line-or-region] #'completion-at-point))
|
|
||||||
|
|
||||||
;; Reset lsp-completion provider
|
;; Reset lsp-completion provider
|
||||||
(add-hook 'doom-init-modules-hook
|
(add-hook 'doom-init-modules-hook
|
||||||
(lambda ()
|
(lambda ()
|
||||||
@ -61,16 +54,6 @@
|
|||||||
(corfu-terminal-mode)))
|
(corfu-terminal-mode)))
|
||||||
|
|
||||||
|
|
||||||
(use-package! corfu-doc
|
|
||||||
:hook (corfu-mode . corfu-doc-mode)
|
|
||||||
:custom
|
|
||||||
(corfu-doc-delay 0)
|
|
||||||
:bind (:map corfu-map
|
|
||||||
("M-n" . corfu-doc-scroll-down)
|
|
||||||
("M-p" . corfu-doc-scroll-up)
|
|
||||||
("M-d" . corfu-doc-toggle)))
|
|
||||||
|
|
||||||
|
|
||||||
(use-package! orderless
|
(use-package! orderless
|
||||||
:when (modulep! +orderless)
|
:when (modulep! +orderless)
|
||||||
:init
|
:init
|
||||||
|
Loading…
Reference in New Issue
Block a user