   ;; https://github.com/MaskRay/emacs-ccls
   ;; Emacs client for ccls, a C/C++ language server
   :after lsp-mode
-  :hook ((c-mode-common . lsp))
+  :hook ((c-mode-common . lsp)
+         (c-mode-common . yas-minor-mode))
   :init
   (setq ccls-executable "ccls" ; Must be on PATH: assume /usr/local/bin/ccls
         ))

        company-auto-select-first-candidate nil)
  )

(use-package company-shell
  ;; https://github.com/Alexander-Miller/company-shell
  ;; company mode completion backends for your shell functions

  (danylo/fancy-icon 'all-the-icons-octicon 'all-the-icons-octicon-family
                     icon fg))

(defun danylo/print-in-minibuffer (str &optional ifempty)
  "Echo STR in the minibuffer."
  (with-selected-window (minibuffer-window)
    (when (or (not ifempty)
              ;; Check that the minibuffer does not have text already
              (not (current-message)))
      (setq cursor-type nil)
      ;; Loop through the string and replace the foreground color of each
      ;; character to a faded color
      (setq danylo/~i 0)
      (while (< danylo/~i (length str))
        (setq danylo/face~props (get-text-property danylo/~i 'face str))
        (setq danylo/fg~pos (cl-position :foreground danylo/face~props))
        (if danylo/fg~pos
            (setf (nth (1+ danylo/fg~pos) danylo/face~props) `,danylo/faded)
          (setq danylo/face~props (append danylo/face~props
                                          `(:foreground ,danylo/faded))))
        (put-text-property danylo/~i (1+ danylo/~i) 'face danylo/face~props str)
        (setq danylo/~i (1+ danylo/~i)))
      ;; Print the string to minibuffer
      (message "%s" str)
      (setq cursor-type t))))

(use-package ts
  ;; https://github.com/alphapapa/ts.el
