summaryrefslogtreecommitdiffstats
path: root/lisp/ravi-init-lsp.el
diff options
context:
space:
mode:
authorRavi R Kiran <aine.marina@gmail.com>2021-04-25 02:02:31 (GMT)
committerRavi R Kiran <aine.marina@gmail.com>2021-04-25 02:02:31 (GMT)
commit3b46746a3c3c56a046919300bcb435994f5baccd (patch)
tree833d02aff74d8fc6a9e1da7a470ce6a8b098eacc /lisp/ravi-init-lsp.el
parent1778b26ba4a9b10ee501868f2bd74252564276c6 (diff)
downloaddotemacs-3b46746a3c3c56a046919300bcb435994f5baccd.zip
dotemacs-3b46746a3c3c56a046919300bcb435994f5baccd.tar.gz
dotemacs-3b46746a3c3c56a046919300bcb435994f5baccd.tar.bz2
lsp-deferred is sufficient to get file-local variables
Diffstat (limited to 'lisp/ravi-init-lsp.el')
-rw-r--r--lisp/ravi-init-lsp.el9
1 files changed, 3 insertions, 6 deletions
diff --git a/lisp/ravi-init-lsp.el b/lisp/ravi-init-lsp.el
index 2bf105a..e5be4fe 100644
--- a/lisp/ravi-init-lsp.el
+++ b/lisp/ravi-init-lsp.el
@@ -30,12 +30,9 @@
(use-package lsp-mode
:init
(setq lsp-keymap-prefix "H-l")
- (defun ravi/add-lsp-with-local-variables ()
- ;; The t at the end is to make hack-local-variables-hook buffer-local
- (add-hook 'hack-local-variables-hook 'lsp-deferred 0 t))
- :hook ((c-mode-hook . ravi/add-lsp-with-local-variables)
- (c++-mode-hook . ravi/add-lsp-with-local-variables)
- ;; (python-mode . ravi/add-lsp-with-local-variables)
+ :hook ((c-mode-hook . lsp-deferred)
+ (c++-mode-hook . lsp-deferred)
+ ;; (python-mode . lsp-deferred)
(lsp-mode-hook . lsp-enable-which-key-integration))
:commands (lsp lsp-deferred)
:bind (:map lsp-mode-map