diff options
Diffstat (limited to 'lisp/ravi-init-lsp.el')
| -rw-r--r-- | lisp/ravi-init-lsp.el | 9 |
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 |
