diff options
| author | Jakob L. Kreuze | 2020-12-04 21:22:54 -0500 |
|---|---|---|
| committer | Jakob L. Kreuze | 2020-12-04 21:47:38 -0500 |
| commit | 5df3de20f70aaecd44d1a71b322023bae4c11372 (patch) | |
| tree | 9ef649a84ac3d3254364d64fcaad19d2fc66d140 | |
| parent | 98f07c5cb5926a7c35825da1dfb9c80a252fb8c2 (diff) | |
Remove the only language I was using lsp-mode for.
In the future, I'll be using eglot.
| -rw-r--r-- | init.el | 1 | ||||
| -rw-r--r-- | lisp/programming.el | 32 | ||||
| -rw-r--r-- | lisp/programming/javascript.el | 26 |
3 files changed, 0 insertions, 59 deletions
@@ -169,5 +169,4 @@ (load-module "programming/common-lisp") (load-module "programming/scheme") (load-module "programming/python") -(load-module "programming/javascript") (load-module "programming/haskell") diff --git a/lisp/programming.el b/lisp/programming.el index 83bed87..592551e 100644 --- a/lisp/programming.el +++ b/lisp/programming.el @@ -123,35 +123,3 @@ (:map smartparens-mode-map ("C-M-o" . sp-up-sexp) ("C-M-i" . sp-backward-down-sexp))) - -(use-package lsp-ui - ;; The only reason I'm using `lsp-ui' is for integration with Flycheck. The - ;; features like lenses don't interest me. - :init - (setq lsp-ui-sideline-enable nil - lsp-ui-peek-enable nil - lsp-ui-doc-enable nil)) - -;; Disable the default machinery in `lsp-mode'. The reason I'm using the package -;; in the first place is for its ability to integrate with the other -;; programming-related packages I use. - -(use-package company-lsp - :commands company-lsp - :init - (setq company-lsp-cache-candidates 'auto)) - -(use-package lsp-mode - :init - (setq lsp-enable-xref t) - - ;; Filesystem hygene. - :init - (setq lsp-session-file "~/.cache/emacs/.lsp-session-v1" - lsp-auto-guess-root t) - - ;; Use `xref' keybindings instead of the default ones. - :bind - (:map lsp-mode-map - ("M-." . lsp-find-definition) - ("M-," . pop-tag-mark))) diff --git a/lisp/programming/javascript.el b/lisp/programming/javascript.el deleted file mode 100644 index c74e6ac..0000000 --- a/lisp/programming/javascript.el +++ /dev/null @@ -1,26 +0,0 @@ -;;; javascript.el -*- lexical-binding: t; -*- -;;; -;;; Author: Jakob L. Kreuze <zerodaysfordays@sdf.org> -;;; URL: https://git.sr.ht/~jakob/.emacs.d/ -;;; -;;; Configuration of a development environment for the Javascript programming -;;; language. -;;; - -(use-package js - :straight nil - - ;; Set up `js-mode' to interact with a LSP daemon. - :requires lsp-mode - :hook (js-mode . lsp) - :config - (lsp-register-client - (make-lsp-client :new-connection (lsp-stdio-connection "~/.bin/js-ts-stdio") - :major-modes '(js-mode) - :server-id 'js-ts-stdio)) - -;; I have yet to find a style guide I agree with, but one thing common to most -;; of them that I _do_ agree with is that Javascript is far more readable with -;; an indentation width of 2. - :init - (setq-default js-indent-level 2)) |