fix(:lang): ensure lsp! is always appended to hooks
This commit is contained in:
parent
a70e634ebd
commit
9cb4c8b637
7 changed files with 12 additions and 10 deletions
|
@ -240,7 +240,7 @@ If rtags or rdm aren't available, fail silently instead of throwing a breaking e
|
||||||
c++-mode-local-vars-hook
|
c++-mode-local-vars-hook
|
||||||
objc-mode-local-vars-hook
|
objc-mode-local-vars-hook
|
||||||
cmake-mode-local-vars-hook)
|
cmake-mode-local-vars-hook)
|
||||||
#'lsp!)
|
:append #'lsp!)
|
||||||
|
|
||||||
(map! :after ccls
|
(map! :after ccls
|
||||||
:map (c-mode-map c++-mode-map)
|
:map (c-mode-map c++-mode-map)
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
(add-hook! '(clojure-mode-local-vars-hook
|
(add-hook! '(clojure-mode-local-vars-hook
|
||||||
clojurec-mode-local-vars-hook
|
clojurec-mode-local-vars-hook
|
||||||
clojurescript-mode-local-vars-hook)
|
clojurescript-mode-local-vars-hook)
|
||||||
|
:append
|
||||||
(defun +clojure-disable-lsp-indentation-h ()
|
(defun +clojure-disable-lsp-indentation-h ()
|
||||||
(setq-local lsp-enable-indentation nil))
|
(setq-local lsp-enable-indentation nil))
|
||||||
#'lsp!)
|
#'lsp!)
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
(after! idris-mode
|
(after! idris-mode
|
||||||
(add-hook 'idris-mode-hook #'turn-on-idris-simple-indent)
|
(add-hook 'idris-mode-hook #'turn-on-idris-simple-indent)
|
||||||
(when (featurep! +lsp)
|
(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-repl-handler! 'idris-mode 'idris-pop-to-repl)
|
||||||
(set-lookup-handlers! 'idris-mode
|
(set-lookup-handlers! 'idris-mode
|
||||||
:documentation #'idris-docs-at-point)
|
:documentation #'idris-docs-at-point)
|
||||||
|
|
|
@ -101,7 +101,7 @@ If no viewer is found, `latex-preview-pane-mode' is used.")
|
||||||
(when (featurep! +lsp)
|
(when (featurep! +lsp)
|
||||||
(add-hook! '(tex-mode-local-vars-hook
|
(add-hook! '(tex-mode-local-vars-hook
|
||||||
latex-mode-local-vars-hook)
|
latex-mode-local-vars-hook)
|
||||||
#'lsp!))
|
:append #'lsp!))
|
||||||
(map! :localleader
|
(map! :localleader
|
||||||
:map latex-mode-map
|
:map latex-mode-map
|
||||||
:desc "View" "v" #'TeX-view
|
:desc "View" "v" #'TeX-view
|
||||||
|
|
|
@ -4,8 +4,9 @@
|
||||||
;;; Packages
|
;;; Packages
|
||||||
|
|
||||||
(when (featurep! +lsp)
|
(when (featurep! +lsp)
|
||||||
(add-hook! '(tuareg-mode-local-vars-hook reason-mode-local-vars-hook)
|
(add-hook! '(tuareg-mode-local-vars-hook
|
||||||
#'lsp!))
|
reason-mode-local-vars-hook)
|
||||||
|
:append #'lsp!))
|
||||||
|
|
||||||
|
|
||||||
(after! tuareg
|
(after! tuareg
|
||||||
|
|
|
@ -76,7 +76,7 @@ If set to `nil', disable all the above behaviors.")
|
||||||
scss-mode-local-vars-hook
|
scss-mode-local-vars-hook
|
||||||
sass-mode-local-vars-hook
|
sass-mode-local-vars-hook
|
||||||
less-css-mode-local-vars-hook)
|
less-css-mode-local-vars-hook)
|
||||||
#'lsp!))
|
:append #'lsp!))
|
||||||
|
|
||||||
(when (featurep! +tree-sitter)
|
(when (featurep! +tree-sitter)
|
||||||
(add-hook 'css-mode-local-vars-hook #'tree-sitter! 'append))
|
(add-hook 'css-mode-local-vars-hook #'tree-sitter! 'append))
|
||||||
|
|
|
@ -167,7 +167,7 @@
|
||||||
(add-hook! '(html-mode-local-vars-hook
|
(add-hook! '(html-mode-local-vars-hook
|
||||||
web-mode-local-vars-hook
|
web-mode-local-vars-hook
|
||||||
nxml-mode-local-vars-hook)
|
nxml-mode-local-vars-hook)
|
||||||
#'lsp!))
|
:append #'lsp!))
|
||||||
|
|
||||||
(when (featurep! +tree-sitter)
|
(when (featurep! +tree-sitter)
|
||||||
(add-hook! '(html-mode-local-vars-hook
|
(add-hook! '(html-mode-local-vars-hook
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue