Iam trying LSP and it works great ; Upon startup a "wizard" offers you to install a server for the language you want to use it with ; I chose jstr, but now I want to try the Eslint server, but I can't find any way to get rid of jstr, even by deleting my whol config, then re-installing everything and installing eslint, jstr is still here..? enter image description here

My config:

(use-package lsp-mode
  :straight t
  :commands (lsp lsp-deferred)
  (setq lsp-keymap-prefix "C-c l"))

(use-package lsp-ui
  :straight t
  :defer t
  :custom (lsp-ui-doc-position 'top-right-angle)
  :hook (lsp-mode . lsp-ui-mode))

(use-package lsp-ivy
  :straight t
  :defer t)

(use-package lsp-treemacs
  :straight t
  ([(f2)] . treemacs))

(use-package js2-mode
  :straight t
  :defer t
  (setq js2-global-externs '("module" "require" "buster" "sinon" "assert" "refute" "setTimeout" "clearTimeout" "setInterval" "clearInterval" "location" "__dirname" "console" "JSON" "PTL" "$" "exports" "resolve" "reject" "process" "localStorage" "DOMPurify"))
  (add-hook 'js2-mode-hook #'company-mode)
  (company-dabbrev-code-ignore-case t)
  :mode "\\.js\\'"
  :hook ((js2-mode . lsp-deferred)
     (js2-mode . display-line-numbers-mode)))

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.