Change lsp for html/php switching and set counsel-register.

This commit is contained in:
kj 2022-06-29 20:52:39 -04:00
parent 5fa858af78
commit cf059895f9
2 changed files with 6 additions and 0 deletions

View File

@ -31,6 +31,7 @@
([remap insert-char] . counsel-unicode-char)
([remap recentf-open-files] . counsel-recentf)
([remap org-capture] . counsel-org-capture)
([remap jump-to-register] . counsel-register)
("C-c c B" . counsel-bookmarked-directory)
("C-c c F" . counsel-faces)

View File

@ -23,6 +23,7 @@
:hook ((prog-mode . (lambda ()
(unless (derived-mode-p 'emacs-lisp-mode 'lisp-mode 'makefile-mode)
(lsp-deferred))))
(html-mode . lsp-deferred)
(markdown-mode . lsp-deferred)
(lsp-mode . lsp-enable-which-key-integration))
:custom
@ -50,6 +51,10 @@
lsp-enable-on-type-formatting nil)
:config
(with-no-warnings
;; Remove php extension on form lsp
(setq lsp-language-id-configuration
(remove '(".*\\.php$" . "php") lsp-language-id-configuration))
;; Disable `lsp-mode' in `git-timemachine-mode'
(defun my-lsp--init-if-visible (fn &rest args)
(unless (bound-and-true-p git-timemachine-mode)