fix(:lang): ensure lsp! is always appended to hooks

This commit is contained in:
Henrik Lissner 2022-07-25 18:12:03 +02:00
parent a70e634ebd
commit 9cb4c8b637
No known key found for this signature in database
GPG key ID: B60957CA074D39A3
7 changed files with 12 additions and 10 deletions

View file

@ -240,7 +240,7 @@ If rtags or rdm aren't available, fail silently instead of throwing a breaking e
c++-mode-local-vars-hook
objc-mode-local-vars-hook
cmake-mode-local-vars-hook)
#'lsp!)
:append #'lsp!)
(map! :after ccls
:map (c-mode-map c++-mode-map)

View file

@ -18,9 +18,10 @@
(add-hook! '(clojure-mode-local-vars-hook
clojurec-mode-local-vars-hook
clojurescript-mode-local-vars-hook)
(defun +clojure-disable-lsp-indentation-h ()
(setq-local lsp-enable-indentation nil))
#'lsp!)
:append
(defun +clojure-disable-lsp-indentation-h ()
(setq-local lsp-enable-indentation nil))
#'lsp!)
(after! lsp-clojure
(dolist (m '(clojure-mode
clojurec-mode

View file

@ -3,7 +3,7 @@
(after! idris-mode
(add-hook 'idris-mode-hook #'turn-on-idris-simple-indent)
(when (featurep! +lsp)
(add-hook 'idris-mode-hook #'lsp!))
(add-hook 'idris-mode-hook #'lsp! 'append))
(set-repl-handler! 'idris-mode 'idris-pop-to-repl)
(set-lookup-handlers! 'idris-mode
:documentation #'idris-docs-at-point)

View file

@ -101,7 +101,7 @@ If no viewer is found, `latex-preview-pane-mode' is used.")
(when (featurep! +lsp)
(add-hook! '(tex-mode-local-vars-hook
latex-mode-local-vars-hook)
#'lsp!))
:append #'lsp!))
(map! :localleader
:map latex-mode-map
:desc "View" "v" #'TeX-view

View file

@ -4,8 +4,9 @@
;;; Packages
(when (featurep! +lsp)
(add-hook! '(tuareg-mode-local-vars-hook reason-mode-local-vars-hook)
#'lsp!))
(add-hook! '(tuareg-mode-local-vars-hook
reason-mode-local-vars-hook)
:append #'lsp!))
(after! tuareg

View file

@ -76,7 +76,7 @@ If set to `nil', disable all the above behaviors.")
scss-mode-local-vars-hook
sass-mode-local-vars-hook
less-css-mode-local-vars-hook)
#'lsp!))
:append #'lsp!))
(when (featurep! +tree-sitter)
(add-hook 'css-mode-local-vars-hook #'tree-sitter! 'append))

View file

@ -167,7 +167,7 @@
(add-hook! '(html-mode-local-vars-hook
web-mode-local-vars-hook
nxml-mode-local-vars-hook)
#'lsp!))
:append #'lsp!))
(when (featurep! +tree-sitter)
(add-hook! '(html-mode-local-vars-hook