summaryrefslogtreecommitdiff
path: root/.dir-locals.el
diff options
context:
space:
mode:
Diffstat (limited to '.dir-locals.el')
-rw-r--r--.dir-locals.el13
1 files changed, 12 insertions, 1 deletions
diff --git a/.dir-locals.el b/.dir-locals.el
index 43d6fa551..13145010c 100644
--- a/.dir-locals.el
+++ b/.dir-locals.el
@@ -32,6 +32,10 @@
;; Jedi, flycheck & other python stuff should use the 'python-shell-interpreter'
;; from the local py3 environment.
;;
+;; For pyright support you need to install::
+;;
+;; M-x package-install lsp-pyright
+;;
;; Other useful jedi stuff you might add to your ~/.emacs::
;;
;; (global-set-key [f6] 'flycheck-mode)
@@ -99,12 +103,19 @@
;; use nodejs from the (local) NVM environment (see nvm-dir)
(nvm-use-for-buffer)
(setq-local js-indent-level 2)
+ ;; flycheck should use the eslint checker from developer tools
+ (setq-local flycheck-javascript-eslint-executable
+ (expand-file-name "node_modules/.bin/eslint" prj-root))
+
(flycheck-mode)
))))
(python-mode
. ((eval . (progn
-
+ ;; use nodejs from the (local) NVM environment (see nvm-dir)
+ (nvm-use-for-buffer)
+ (if (featurep 'lsp-pyright)
+ (lsp))
(setq-local python-environment-virtualenv
(list (expand-file-name "bin/virtualenv" python-shell-virtualenv-root)
;;"--system-site-packages"