You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.2 KiB
EmacsLisp
41 lines
1.2 KiB
EmacsLisp
2 years ago
|
(setq lsp-server-install-dir "/somewhere/that/doesnt/exist")
|
||
|
|
||
2 years ago
|
(defun init-lsp-mode-disable-install-server-error ()
|
||
2 years ago
|
(error "lsp-mode server install features have been disabled"))
|
||
|
|
||
|
(advice-add 'lsp-install-server
|
||
|
:around
|
||
2 years ago
|
'init-lsp-mode-disable-install-server-error)
|
||
2 years ago
|
|
||
|
(advice-add 'lsp-update-server
|
||
|
:around
|
||
2 years ago
|
'init-lsp-mode-disable-install-server-error)
|
||
2 years ago
|
|
||
|
(advice-add 'lsp-update-servers
|
||
|
:around
|
||
2 years ago
|
'init-lsp-mode-disable-install-server-error)
|
||
2 years ago
|
|
||
|
(advice-add 'lsp-download-install
|
||
|
:around
|
||
2 years ago
|
'init-lsp-mode-disable-install-server-error)
|
||
2 years ago
|
|
||
|
(advice-add 'lsp-download-path
|
||
|
:around
|
||
2 years ago
|
'init-lsp-mode-disable-install-server-error)
|
||
2 years ago
|
|
||
|
(advice-add 'lsp-async-start-process
|
||
|
:around
|
||
2 years ago
|
'init-lsp-mode-disable-install-server-error)
|
||
2 years ago
|
|
||
|
(advice-add 'lsp--download-status
|
||
|
:around
|
||
2 years ago
|
'init-lsp-mode-disable-install-server-error)
|
||
2 years ago
|
|
||
|
(advice-add 'lsp--install-server-internal
|
||
|
:around
|
||
2 years ago
|
'init-lsp-mode-disable-install-server-error)
|
||
2 years ago
|
|
||
|
(advice-add 'lsp--npm-dependency-install
|
||
|
:around
|
||
2 years ago
|
'init-lsp-mode-disable-install-server-error)
|