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 insert-char] . counsel-unicode-char)
|
||||||
([remap recentf-open-files] . counsel-recentf)
|
([remap recentf-open-files] . counsel-recentf)
|
||||||
([remap org-capture] . counsel-org-capture)
|
([remap org-capture] . counsel-org-capture)
|
||||||
|
([remap jump-to-register] . counsel-register)
|
||||||
|
|
||||||
("C-c c B" . counsel-bookmarked-directory)
|
("C-c c B" . counsel-bookmarked-directory)
|
||||||
("C-c c F" . counsel-faces)
|
("C-c c F" . counsel-faces)
|
||||||
|
@ -23,6 +23,7 @@
|
|||||||
:hook ((prog-mode . (lambda ()
|
:hook ((prog-mode . (lambda ()
|
||||||
(unless (derived-mode-p 'emacs-lisp-mode 'lisp-mode 'makefile-mode)
|
(unless (derived-mode-p 'emacs-lisp-mode 'lisp-mode 'makefile-mode)
|
||||||
(lsp-deferred))))
|
(lsp-deferred))))
|
||||||
|
(html-mode . lsp-deferred)
|
||||||
(markdown-mode . lsp-deferred)
|
(markdown-mode . lsp-deferred)
|
||||||
(lsp-mode . lsp-enable-which-key-integration))
|
(lsp-mode . lsp-enable-which-key-integration))
|
||||||
:custom
|
:custom
|
||||||
@ -50,6 +51,10 @@
|
|||||||
lsp-enable-on-type-formatting nil)
|
lsp-enable-on-type-formatting nil)
|
||||||
:config
|
:config
|
||||||
(with-no-warnings
|
(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'
|
;; Disable `lsp-mode' in `git-timemachine-mode'
|
||||||
(defun my-lsp--init-if-visible (fn &rest args)
|
(defun my-lsp--init-if-visible (fn &rest args)
|
||||||
(unless (bound-and-true-p git-timemachine-mode)
|
(unless (bound-and-true-p git-timemachine-mode)
|
||||||
|
Loading…
Reference in New Issue
Block a user