Replaced Tide mode with full LSP
This commit is contained in:
parent
8a25f70806
commit
5570171504
@ -386,16 +386,9 @@ text and copying to the killring."
|
||||
|
||||
;; LSP config
|
||||
(after! lsp-mode
|
||||
(setq lsp-diagnostic-package :none)
|
||||
(setq lsp-headerline-breadcrumb-enable t)
|
||||
(setq lsp-headerline-breadcrumb-icons-enable t))
|
||||
|
||||
(after! lsp-ui
|
||||
(setq lsp-ui-doc-enable t))
|
||||
|
||||
;; (add-hook 'prog-mode-hook (lambda () (symbol-overlay-mode t)))
|
||||
|
||||
|
||||
;; Create new spikes, saved for later
|
||||
;; (defun certn/new-spike ()
|
||||
;; "Create a new org spike in ~/org/Lazer/Certn/."
|
||||
@ -488,19 +481,3 @@ text and copying to the killring."
|
||||
;; Go
|
||||
(setq lsp-go-analyses '((shadow . t)
|
||||
(simplifycompositelit . :json-false)))
|
||||
|
||||
|
||||
|
||||
|
||||
;; JavaScript & TypeScript
|
||||
|
||||
;;;; Tide mode
|
||||
(defun setup-tide-mode ()
|
||||
(interactive)
|
||||
(tide-setup)
|
||||
(tide-hl-identifier-mode +1)
|
||||
(flycheck-add-next-checker 'typescript-tide 'javascript-eslint))
|
||||
|
||||
(add-hook 'typescript-mode-hook #'setup-tide-mode)
|
||||
(add-hook 'typescript-ts-mode-hook #'setup-tide-mode)
|
||||
(add-hook 'typescript-tsx-mode-hook #'setup-tide-mode)
|
||||
|
Loading…
x
Reference in New Issue
Block a user