diff --git a/doom/config.el b/doom/config.el index e5cb150..bc20a96 100644 --- a/doom/config.el +++ b/doom/config.el @@ -80,6 +80,9 @@ (setq lsp-pyls-plugins-pyflakes-enabled t) ) +(after! lsp-python-ms + (set-lsp-priority! 'mspyls 1)) + (add-hook 'org-mode-hook #'org-bullets-mode) (add-hook 'before-save-hook 'py-isort-before-save) @@ -114,3 +117,21 @@ was updated after pytest was run then nothing is reported. 'org-babel-load-languages '((python . t))) + +(setq projectile-project-search-path '("~/Projects/" "~/Work/Projects/")) + +(setf (lsp-session-folders-blacklist (lsp-session)) nil) +(lsp--persist-session (lsp-session)) + +(advice-add 'lsp :before (lambda (&rest _args) (eval '(setf (lsp-session-server-id->folders (lsp-session)) (ht))))) + + +(add-load-path! (expand-file-name "~/Downloads/all-the-icons-dired")) +(load "all-the-icons-dired.el") +(add-hook 'dired-mode-hook 'all-the-icons-dired-mode) + +(use-package! peep-dired + :ensure t + :defer t ; don't access `dired-mode-map' until `peep-dired' is loaded + :bind (:map dired-mode-map + ("P" . peep-dired))) diff --git a/doom/init.el b/doom/init.el index d6b4a2d..bf302d4 100644 --- a/doom/init.el +++ b/doom/init.el @@ -43,7 +43,7 @@ ophints ; highlight the region an operation acts on (popup +defaults) ; tame sudden yet inevitable temporary windows ;;tabs ; a tab bar for Emacs - treemacs ; a project drawer, like neotree but cooler + (treemacs +lsp) ; a project drawer, like neotree but cooler unicode ; extended unicode support for various languages vc-gutter ; vcs diff in the fringe vi-tilde-fringe ; fringe tildes to mark beyond EOB @@ -66,7 +66,7 @@ word-wrap ; soft wrapping with language-aware indent :emacs - dired ; making dired pretty [functional] + (dired +icons) ; making dired pretty [functional] electric ; smarter, keyword-based electric-indent ;;ibuffer ; interactive buffer management undo ; persistent, smarter undo for your inevitable mistakes @@ -152,7 +152,7 @@ ;;php ; perl's insecure younger brother ;;plantuml ; diagrams for confusing people more ;;purescript ; javascript, but functional - (python +lsp) ; beautiful is better than ugly + (python +lsp +pyenv) ; beautiful is better than ugly ;;qt ; the 'cutest' gui framework ever ;;racket ; a DSL for DSLs ;;raku ; the artist formerly known as perl6 diff --git a/doom/packages.el b/doom/packages.el index 3d078a9..355f12e 100644 --- a/doom/packages.el +++ b/doom/packages.el @@ -58,3 +58,5 @@ (package! ein) (package! python-docstring) (package! py-autopep8) +(package! diredfl) +(package! peep-dired)