Skip to content

Commit

Permalink
remove yasnippet from lsp suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
adasium committed Mar 18, 2024
1 parent 9a15912 commit fd047af
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions doom/config.el
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit fd047af

Please sign in to comment.