Skip to content

Commit 47d539e

Browse files
committed
Only bind keymaps if has lsp-prefix
1 parent 05f70e0 commit 47d539e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lsp-dart-utils.el

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,12 @@ FLUTTER_ROOT environment variable."
146146
(error "Project not found (pubspec.yaml not found)"))))
147147

148148

149-
;; keymap
149+
;; Keymap
150150

151151
(defun lsp-dart-define-key (key action)
152152
"Define KEY with ACTION."
153-
(define-key lsp-mode-map (kbd (concat lsp-keymap-prefix " D " key)) action))
153+
(when lsp-keymap-prefix
154+
(define-key lsp-mode-map (kbd (concat lsp-keymap-prefix " D " key)) action)))
154155

155156

156157
;; Log

0 commit comments

Comments
 (0)