File tree Expand file tree Collapse file tree 2 files changed +8
-12
lines changed Expand file tree Collapse file tree 2 files changed +8
-12
lines changed Original file line number Diff line number Diff line change 1- ; ;; lsp-dart-flutter-fringe.el --- Dart fringe tools -*- lexical-binding : t ; -*-
1+ ; ;; lsp-dart-flutter-fringe-colors .el --- Flutter fringe colors -*- lexical-binding : t ; -*-
22; ;
33; ; This program is free software; you can redistribute it and/or modify
44; ; it under the terms of the GNU General Public License as published by
1515
1616; ;; Commentary:
1717
18- ; ; LSP dart support for fringe
18+ ; ; Flutter support for fringe colors
1919
2020; ;; Code:
2121
102102 (remove-overlays (point-min ) (point-max ) 'lsp-dart-flutter-fringe-colors t )
103103 (remove-hook 'lsp-on-change-hook #'lsp-dart-flutter-fringe--update-colors t )))))
104104
105- (when lsp-dart-flutter-fringe-colors
106- (add-hook 'lsp-after-open-hook
107- (lambda ()
108- (when (lsp-find-workspace 'dart_analysis_server nil )
109- (lsp-dart-flutter-fringe-colors-mode)))))
110-
111- (provide 'lsp-dart-flutter-fringe )
112- ; ;; lsp-dart-flutter-fringe.el ends here
105+ (provide 'lsp-dart-flutter-fringe-colors )
106+ ; ;; lsp-dart-flutter-fringe-colors.el ends here
Original file line number Diff line number Diff line change 3333(require 'lsp-dart-flutter-daemon )
3434(require 'lsp-dart-closing-labels )
3535(require 'lsp-dart-outline )
36- (require 'lsp-dart-flutter-fringe )
36+ (require 'lsp-dart-flutter-fringe-colors )
3737(require 'lsp-dart-flutter-widget-guide )
3838
3939(defgroup lsp-dart nil
@@ -104,7 +104,9 @@ PARAMS is the data sent from server."
104104(defun lsp-dart--activate-features ()
105105 " Activate lsp-dart features if enabled."
106106 (when lsp-dart-flutter-widget-guides
107- (lsp-dart-flutter-widget-guides-mode 1 )))
107+ (lsp-dart-flutter-widget-guides-mode 1 ))
108+ (when lsp-dart-flutter-fringe-colors
109+ (lsp-dart-flutter-fringe-colors-mode 1 )))
108110
109111(lsp-register-client
110112 (make-lsp-client :new-connection
You can’t perform that action at this time.
0 commit comments