New answers tagged

3

How about: (use-package lsp-mode :straight t :init (setq lsp-keymap-prefix "C-c l") :hook (python-mode . lsp-deferred)) The doc for lsp-deferred: Signature (lsp-deferred) Documentation Entry point that defers server startup until buffer is visible. lsp-deferred will wait until the buffer is visible before invoking lsp. This avoids ...


Top 50 recent answers are included