diff options
author | Roger Gonzalez <roger@rogs.me> | 2020-09-09 12:55:06 -0300 |
---|---|---|
committer | Roger Gonzalez <roger@rogs.me> | 2020-09-09 12:55:06 -0300 |
commit | fd7fe644ebf79ec0501df94d7ea5be110e5e9114 (patch) | |
tree | f1885857021c2ce871bf1c46389335a5cc61eb09 /.doom.d/config.el | |
parent | b4aee05292e6988054a2feb0cee60f714255151f (diff) |
Configured pyls in LSP mode
Diffstat (limited to '.doom.d/config.el')
-rw-r--r-- | .doom.d/config.el | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/.doom.d/config.el b/.doom.d/config.el index bad3aeee..73ac9f30 100644 --- a/.doom.d/config.el +++ b/.doom.d/config.el @@ -153,6 +153,8 @@ ;; Org Mode (after! org + ;; Include diary + (setq org-agenda-include-diary t) ;; Logs (setq org-log-state-notes-insert-after-drawers nil org-log-into-drawer t @@ -254,3 +256,19 @@ "--stdio")) ;; For some reason, eslint disables document hightlight so I'm reenabling it (add-hook 'lsp-on-idle-hook 'lsp-document-highlight) + +(after! python + :init + (setq lsp-pyls-plugins-pylint-enabled t) + (setq lsp-pyls-plugins-autopep8-enabled nil) + (setq lsp-pyls-plugins-pyflakes-enabled nil) + (setq lsp-pyls-plugins-pycodestyle-enabled nil) + (setq lsp-pyls-configuration-sources "pep8") + (add-hook 'before-save-hook 'lsp-format-buffer)) + +;; Setting up pyvenv. On each project, run add-dir-local-variable and specify the virtualenv location +(use-package pyvenv + :ensure t + :init + (pyvenv-mode 1) + (pyvenv-tracking-mode 1)) |