File tree 3 files changed +8
-6
lines changed
3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 75
75
(if-let ((color (-> (match-string 1 )
76
76
(assoc lsp-dart-flutter-colors)
77
77
cdr )))
78
- (lsp-dart-flutter-fringe--add-color (concat " #" color) buffer (point-at-bol ))))
78
+ (lsp-dart-flutter-fringe--add-color (concat " #" color) buffer (line-beginning-position ))))
79
79
(goto-char (point-min ))
80
80
(while (re-search-forward lsp-dart-flutter-fringe-color-hex-pattern nil t )
81
81
(let ((color (concat " #" (substring (match-string 1 ) 2 ))))
82
- (lsp-dart-flutter-fringe--add-color color buffer (point-at-bol ))))
82
+ (lsp-dart-flutter-fringe--add-color color buffer (line-beginning-position ))))
83
83
(goto-char (point-min ))
84
84
(while (re-search-forward lsp-dart-flutter-fringe-color-argb-pattern nil t )
85
85
(let ((color (lsp-dart-flutter-fringe--rgb-to-hex (match-string 2 )
86
86
(match-string 3 )
87
87
(match-string 4 ))))
88
- (lsp-dart-flutter-fringe--add-color color buffer (point-at-bol ))))
88
+ (lsp-dart-flutter-fringe--add-color color buffer (line-beginning-position ))))
89
89
(goto-char (point-min ))
90
90
(while (re-search-forward lsp-dart-flutter-fringe-color-rgbo-pattern nil t )
91
91
(let ((color (lsp-dart-flutter-fringe--rgb-to-hex (match-string 1 )
92
92
(match-string 2 )
93
93
(match-string 3 ))))
94
- (lsp-dart-flutter-fringe--add-color color buffer (point-at-bol )))))))
94
+ (lsp-dart-flutter-fringe--add-color color buffer (line-beginning-position )))))))
95
95
96
96
(define-minor-mode lsp-dart-flutter-fringe-colors-mode
97
97
" Mode for displaying colors in fringe."
Original file line number Diff line number Diff line change @@ -206,8 +206,8 @@ FLUTTER_ROOT environment variable."
206
206
(-some
207
207
(lambda (strategy )
208
208
(cl-case strategy
209
- (' lsp-root (lsp-workspace-root))
210
- (' closest-pubspec (-some-> default-directory
209
+ (` lsp-root (lsp-workspace-root))
210
+ (` closest-pubspec (-some-> default-directory
211
211
(locate-dominating-file " pubspec.yaml" )
212
212
file-truename))))
213
213
lsp-dart-project-root-discovery-strategies))
Original file line number Diff line number Diff line change 44
44
(require 'lsp-dart-flutter-widget-guide )
45
45
(require 'lsp-dart-commands )
46
46
47
+ (declare-function yas-minor-mode " ext:yasnippet.el" )
48
+
47
49
(defgroup lsp-dart nil
48
50
" LSP support for Dart, using dart analysis server."
49
51
:prefix " lsp-dart-"
You can’t perform that action at this time.
0 commit comments