diff --git a/.doom.d/.gitignore b/.doom.d/.gitignore new file mode 100644 index 0000000..84152d1 --- /dev/null +++ b/.doom.d/.gitignore @@ -0,0 +1,2 @@ +config.el +env.el diff --git a/.doom.d/config.org b/.doom.d/config.org index 924cdfa..23a67b4 100644 --- a/.doom.d/config.org +++ b/.doom.d/config.org @@ -1246,7 +1246,7 @@ Setup: run =M-x dap-go-setup= (advice-add 'lsp--find-root-interactively :before-until #'my/lsp-find-root) (defun my/lsp-buffer-killed () - (when lsp-mode + (when (bound-and-true-p lsp-mode) (let ((root (lsp-find-session-folder (lsp-session) ($cwd)))) ;; If we're in an ignored project, remove it from the LSP session (when (my/project-ignored-p root)