From fd047af631a5dc2b5de3b416af6cef1e24965e38 Mon Sep 17 00:00:00 2001 From: adasium Date: Mon, 18 Mar 2024 17:39:30 +0100 Subject: [PATCH] remove yasnippet from lsp suggestions --- doom/config.el | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/doom/config.el b/doom/config.el index d5ac75a..87ced4d 100644 --- a/doom/config.el +++ b/doom/config.el @@ -300,3 +300,13 @@ Copilot accept completion if copilot-mode active, jump out quote or brackets, or ;; https://github.com/emacsorphanage/evil-textobj-line/blob/master/evil-textobj-line.el (define-key evil-outer-text-objects-map evil-textobj-line-a-key 'evil-a-line) (define-key evil-inner-text-objects-map evil-textobj-line-i-key 'evil-inner-line) + +(defun chom/remove-yasnippet-from-company-backends () + (interactive) + (mapcar (lambda (x) + (if (listp x) + (remove 'company-yasnippet x) + x)) + company-backends)) + +(add-hook! 'python-mode-hook #'chom/remove-yasnippet-from-company-backends)