diff --git a/modules/tools/lsp/config.el b/modules/tools/lsp/config.el index f65a68747..f8360482d 100644 --- a/modules/tools/lsp/config.el +++ b/modules/tools/lsp/config.el @@ -129,7 +129,7 @@ Also see: This also logs the resolved project root, if found, so we know where we are." :override #'lsp (interactive "P") - (and (buffer-file-name) + (and (buffer-file-name (buffer-base-buffer)) (require 'lsp-mode nil t) (setq-local lsp--buffer-workspaces