Company-capf needs to be the first
This commit is contained in:
parent
69e992e54a
commit
36ac08f3fa
1 changed files with 8 additions and 2 deletions
|
@ -5,8 +5,6 @@
|
||||||
:config
|
:config
|
||||||
(set-popup-rule! "^\\*Racket REPL" :size 10 :select t)
|
(set-popup-rule! "^\\*Racket REPL" :size 10 :select t)
|
||||||
(set-repl-handler! 'racket-mode #'+racket/repl)
|
(set-repl-handler! 'racket-mode #'+racket/repl)
|
||||||
(set-company-backend! 'racket-mode
|
|
||||||
'(company-abbrev company-dabbrev-code company-dabbrev company-files))
|
|
||||||
(set-lookup-handlers! 'racket-mode
|
(set-lookup-handlers! 'racket-mode
|
||||||
:definition #'racket-describe
|
:definition #'racket-describe
|
||||||
:documentation #'racket-doc)
|
:documentation #'racket-doc)
|
||||||
|
@ -19,6 +17,14 @@
|
||||||
:symbols '(("#true" "#false")))
|
:symbols '(("#true" "#false")))
|
||||||
|
|
||||||
(setq racket-smart-open-bracket-enable t)
|
(setq racket-smart-open-bracket-enable t)
|
||||||
|
(when (featurep! :completion company)
|
||||||
|
(setq-local company-backends
|
||||||
|
'(company-capf
|
||||||
|
company-abbrev
|
||||||
|
company-dabbrev-code
|
||||||
|
company-dabbrev
|
||||||
|
company-files
|
||||||
|
company-yasnippet)))
|
||||||
|
|
||||||
(add-hook! racket-mode
|
(add-hook! racket-mode
|
||||||
#'(;; 3rd-party functionality
|
#'(;; 3rd-party functionality
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue