Minor refactors & reformatting
This commit is contained in:
parent
86194e2c53
commit
83b6f74d11
5 changed files with 16 additions and 12 deletions
|
@ -93,9 +93,10 @@ be negative.")
|
||||||
;; (as prescribed by the fuzzy flag) also in the following cases:
|
;; (as prescribed by the fuzzy flag) also in the following cases:
|
||||||
;; - helmized commands that use `completion-at-point' and similar functions
|
;; - helmized commands that use `completion-at-point' and similar functions
|
||||||
;; - native commands that fall back to `completion-styles' like `helm-M-x'
|
;; - native commands that fall back to `completion-styles' like `helm-M-x'
|
||||||
(if (< emacs-major-version 27)
|
(push (if EMACS27+
|
||||||
(push (if fuzzy 'helm-flex 'helm) completion-styles)
|
(if fuzzy 'flex 'helm)
|
||||||
(push (if fuzzy 'flex 'helm) completion-styles)))
|
(if fuzzy 'helm-flex 'helm))
|
||||||
|
completion-styles))
|
||||||
|
|
||||||
:config
|
:config
|
||||||
(set-popup-rule! "^\\*helm" :vslot -100 :size 0.22 :ttl nil)
|
(set-popup-rule! "^\\*helm" :vslot -100 :size 0.22 :ttl nil)
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
;;; lang/dart/config.el -*- lexical-binding: t; -*-
|
;;; lang/dart/config.el -*- lexical-binding: t; -*-
|
||||||
|
|
||||||
(after! dart-mode
|
(use-package! dart-mode
|
||||||
(when (featurep! +lsp)
|
:when (featurep! +lsp)
|
||||||
(add-hook 'dart-mode-local-vars-hook #'lsp!)
|
:hook (dart-mode-local-vars . lsp!)
|
||||||
(when (and (featurep! +flutter) IS-LINUX)
|
:config
|
||||||
(when-let (path (doom-glob "/opt/flutter/bin/cache/dart-sdk"))
|
(when (and (featurep! +flutter) IS-LINUX)
|
||||||
(setq lsp-dart-sdk-dir path)))))
|
(when-let (path (doom-glob "/opt/flutter/bin/cache/dart-sdk"))
|
||||||
|
(setq lsp-dart-sdk-dir path))))
|
||||||
|
|
||||||
|
|
||||||
(use-package! flutter
|
(use-package! flutter
|
||||||
|
|
|
@ -3,8 +3,8 @@
|
||||||
|
|
||||||
(use-package! lsp-java
|
(use-package! lsp-java
|
||||||
:after lsp-clients
|
:after lsp-clients
|
||||||
:init
|
:hook (java-mode-local-vars . lsp!)
|
||||||
(add-hook 'java-mode-local-vars-hook #'lsp!)
|
:preface
|
||||||
(setq lsp-java-server-install-dir (concat doom-etc-dir "eclipse.jdt.ls/server/")
|
(setq lsp-java-server-install-dir (concat doom-etc-dir "eclipse.jdt.ls/server/")
|
||||||
lsp-java-workspace-dir (concat doom-etc-dir "java-workspace"))
|
lsp-java-workspace-dir (concat doom-etc-dir "java-workspace"))
|
||||||
:config
|
:config
|
||||||
|
|
|
@ -55,6 +55,8 @@ irrespective of what `+lsp-company-backend' is set to.")
|
||||||
:definition #'lsp-find-definition
|
:definition #'lsp-find-definition
|
||||||
:references #'lsp-find-references)
|
:references #'lsp-find-references)
|
||||||
|
|
||||||
|
;; TODO Lazy load these. They don't need to be loaded all at once unless the
|
||||||
|
;; user uses `lsp-install-server'.
|
||||||
(when lsp-auto-configure
|
(when lsp-auto-configure
|
||||||
(mapc (lambda (package) (require package nil t))
|
(mapc (lambda (package) (require package nil t))
|
||||||
lsp-client-packages))
|
lsp-client-packages))
|
||||||
|
|
|
@ -164,6 +164,7 @@ PLIST can have the following properties:
|
||||||
"Face used for the title of menu widgets on the dashboard"
|
"Face used for the title of menu widgets on the dashboard"
|
||||||
:group 'doom-dashboard)
|
:group 'doom-dashboard)
|
||||||
|
|
||||||
|
|
||||||
;;
|
;;
|
||||||
;;; Major mode
|
;;; Major mode
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue