Change lsp for html/php switching and set counsel-register.
This commit is contained in:
parent
5fa858af78
commit
cf059895f9
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user