File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -525,7 +525,15 @@ The MARKERS and PREFIX value will be attached to each candidate."
525
525
:company-require-match 'never
526
526
:company-prefix-length
527
527
(save-excursion
528
- (and (lsp-completion--looking-back-trigger-characterp trigger-chars) t ))
528
+ (defvar company-minimum-prefix-length )
529
+ (let ((bounds-left (max (line-beginning-position ) (- (point ) company-minimum-prefix-length)))
530
+ triggered-by-char?)
531
+ (while (and (> (point ) bounds-left)
532
+ (not (equal (char-after ) ?\s ))
533
+ (not triggered-by-char?) )
534
+ (setq triggered-by-char? (lsp-completion--looking-back-trigger-characterp trigger-chars))
535
+ (goto-char (1- (point ))))
536
+ (and triggered-by-char? t )))
529
537
:company-match #'lsp-completion--company-match
530
538
:company-doc-buffer (-compose #'lsp-doc-buffer
531
539
#'lsp-completion--get-documentation )
You can’t perform that action at this time.
0 commit comments