 ;; python language server
 (use-package lsp-python-ms
   :straight t
-  :defer t
-  :init
-  (setq lsp-python-ms-auto-install-server t
-        lsp-python-ms-executable "~/Projects/python-language-server/output/bin/Release/linux-x64/publish/Microsoft.Python.LanguageServer")
-  :hook (python-mode . (lambda ()
-                         (require 'lsp-python-ms)
-                         (lsp))))
+  :after lsp
+  :init
+  (setq lsp-python-ms-auto-install-server t))
 
 ;;;;; Tree-sitter
 

  :defer t
  :commands lsp lsp-deferred
  :init
  (setq lsp-headerline-breadcrumb-enable nil)
  (setq lsp-keymap-prefix "C-c c")
  (setq lsp-clients-clangd-args '("-j=3"
                                  "--background-index"

                     #'corfu--completion-in-region
                   #'consult-completion-in-region)
                 args))))

(use-package company
  :straight t

  :custom
  (company-idle-delay 0)
  (company-minimum-prefix-length 1)
  (company-selection-wrap-around t)
  (company-global-modes '(not org-mode))

  :hook
  (prog-mode . company-mode)

  :config
  (general-def
    :keymaps 'company-active-map
    :states '(emacs insert motion)
    "TAB" #'company-complete-common-or-cycle ; not working?
    "<backtab>" (lambda ()
                  (interactive)
                  (company-complete-common-or-cycle -1))))

;;;;; Documentation

