emacs: Enable Dart support
This commit is contained in:
parent
9b21bacf5f
commit
f1a6f68ec3
@ -48,6 +48,8 @@ in {
|
|||||||
json-mode
|
json-mode
|
||||||
rust-mode
|
rust-mode
|
||||||
yaml-mode
|
yaml-mode
|
||||||
|
lsp-mode lsp-treemacs flycheck company
|
||||||
|
dart-mode lsp-dart
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -7,8 +7,7 @@
|
|||||||
(setq redisplay-dont-pause t)
|
(setq redisplay-dont-pause t)
|
||||||
(setq jit-lock-defer-time 0)
|
(setq jit-lock-defer-time 0)
|
||||||
(setq fast-but-imprecise-scrolling t)
|
(setq fast-but-imprecise-scrolling t)
|
||||||
(setq make-backup-files nil)
|
(setq make-backup-files nil) (setq create-lockfiles nil)
|
||||||
(setq create-lockfiles nil)
|
|
||||||
|
|
||||||
;; A trick for faster startup is to just disable GC for the init phase
|
;; A trick for faster startup is to just disable GC for the init phase
|
||||||
;;; See: https://github.com/nilcons/emacs-use-package-fast#a-trick-less-gc-during-startup
|
;;; See: https://github.com/nilcons/emacs-use-package-fast#a-trick-less-gc-during-startup
|
||||||
@ -208,6 +207,11 @@
|
|||||||
(use-package json-mode)
|
(use-package json-mode)
|
||||||
(use-package rust-mode)
|
(use-package rust-mode)
|
||||||
(use-package yaml-mode)
|
(use-package yaml-mode)
|
||||||
|
(add-hook 'dart-mode-hook 'lsp)
|
||||||
|
(setq lsp-lens-enable t
|
||||||
|
lsp-signature-auto-activate nil
|
||||||
|
company-minimum-prefix-length 1
|
||||||
|
read-process-output-max (* 1024 1024))
|
||||||
|
|
||||||
;; Debugging
|
;; Debugging
|
||||||
;(use-package explain-pause-mode
|
;(use-package explain-pause-mode
|
||||||
|
Loading…
Reference in New Issue
Block a user