Remove the fix-lsp-company-prefix since it is no longer needed
- company-lsp is now smarter and supports fuzzy matching
This commit is contained in:
parent
ab893e3af0
commit
f892ba3091
|
@ -1791,6 +1791,7 @@ Other:
|
|||
- Added package =helm-lsp=
|
||||
- ~SPC m g s~ to find symbol in current project
|
||||
- ~SPC m g S~ to find symbol in all projects
|
||||
- Deleted =fix-lsp-company-prefix= since =company-lsp= is doing that handling.
|
||||
**** Debug Adapter Protocol (DAP)
|
||||
- Key bindings
|
||||
- ~SPC m d d e~ to edit debug template
|
||||
|
|
|
@ -41,8 +41,7 @@
|
|||
:variables company-minimum-prefix-length 2
|
||||
:append-hooks nil
|
||||
:call-hooks t)
|
||||
(company-mode)
|
||||
(fix-lsp-company-prefix))
|
||||
(company-mode))
|
||||
(message "`lsp' layer is not installed, please add `lsp' layer to your dotfile.")))
|
||||
|
||||
|
||||
|
|
|
@ -50,8 +50,7 @@
|
|||
:modes js2-mode
|
||||
:append-hooks nil
|
||||
:call-hooks t)
|
||||
(company-mode)
|
||||
(fix-lsp-company-prefix))
|
||||
(company-mode))
|
||||
(message (concat "`lsp' layer is not installed, "
|
||||
"please add `lsp' layer to your dotfile."))))
|
||||
|
||||
|
|
|
@ -75,8 +75,7 @@
|
|||
:variables company-minimum-prefix-length 2
|
||||
:append-hooks nil
|
||||
:call-hooks t)
|
||||
(company-mode)
|
||||
(fix-lsp-company-prefix))
|
||||
(company-mode))
|
||||
(message (concat "`lsp' layer is not installed, "
|
||||
"please add `lsp' layer to your dotfile."))))
|
||||
|
||||
|
|
|
@ -15,19 +15,6 @@
|
|||
(add-to-list (intern (format "spacemacs-jump-handlers-%S" m))
|
||||
'(lsp-ui-peek-find-definitions :async t))))
|
||||
|
||||
(defun fix-lsp-company-prefix ()
|
||||
"fix lsp-javascript company prefix
|
||||
https://github.com/emacs-lsp/lsp-javascript/issues/9#issuecomment-379515379"
|
||||
(interactive)
|
||||
(defun lsp-prefix-company-transformer (candidates)
|
||||
(let ((completion-ignore-case t))
|
||||
(if (and (car candidates)
|
||||
(get-text-property 0 'lsp-completion-prefix (car candidates)))
|
||||
(all-completions (company-grab-symbol) candidates)
|
||||
candidates)))
|
||||
(make-local-variable 'company-transformers)
|
||||
(add-to-list 'company-transformers 'lsp-prefix-company-transformer))
|
||||
|
||||
(defun spacemacs/lsp-bind-keys ()
|
||||
"Define key bindings for the lsp minor mode."
|
||||
(ecase lsp-navigation
|
||||
|
|
Loading…
Reference in New Issue