diff options
| author | LLoyderino <adrijan.bjedov@gmail.com> | 2025-06-05 10:39:16 +0200 |
|---|---|---|
| committer | LLoyderino <adrijan.bjedov@gmail.com> | 2025-06-05 10:39:16 +0200 |
| commit | 401edf221328916b48abffc91fe630e2d88df658 (patch) | |
| tree | f23d1ec216c03d0c557583d438741c9c96681270 | |
| parent | 4127cc3356e72a5a3ba4cbd8d497be962359761e (diff) | |
WIP LSP configuration settings
| -rw-r--r-- | README.md | 10 | ||||
| -rw-r--r-- | init.el | 44 |
2 files changed, 54 insertions, 0 deletions
@@ -12,3 +12,13 @@ This setup is tested on Emacs 30.1, this means some packages are already built-i Additionally the theme custom module assumes you are running Gnome +## Goodies to check out + +### Tab management + +```elisp +;; Tab history +(tab-bar-history-mode t) +(global-set-key (kbd "M-[") 'tab-bar-history-back) +(global-set-key (kbd "M-]") 'tab-bar-history-forward) +``` @@ -59,3 +59,47 @@ (use-package nix-ts-mode :mode "\\.nix\\'") +;; Web development +(use-package web-mode) + +;; Angular +(define-derived-mode angular-mode web-mode "angular") + +;; TODO: automatic ngserver path evaluation +;; (with-eval-after-load 'eglot +;; (let ((ngserver-path (executable-find "ngserver"))) +;; (when ngserver-path +;; (add-to-list 'eglot-server-programs +;; '(angular-mode . ("ngserver" +;; "--stdio" +;; "--tsProbeLocations" +;; "./node_modules/typescript/lib" +;; "--ngProbeLocations" +;; ngserver-path)))))) + +(with-eval-after-load 'eglot + (add-to-list 'eglot-server-programs + '(angular-mode . ("ngserver" + "--stdio" + "--tsProbeLocations" + "./node_modules/typescript/lib" + "--ngProbeLocations" + "/etc/profiles/per-user/lloyd/bin/ngserver")))) + + +(add-hook 'angular-mode-hook 'eglot-ensure) + +;; ;; Astro (depends on web-mode) +;; (define-derived-mode astro-mode web-mode "astro") +;; (setq auto-mode-alist +;; (append '((".*\\.astro\\'" . astro-mode)) +;; auto-mode-alist)) + +;; (with-eval-after-load 'eglot +;; (add-to-list 'eglot-server-programs +;; '(astro-mode . ("astro-ls" "--stdio" +;; :initializationOptions +;; (:typescript (:tsdk "./node_modules/typescript/lib")))))) + +;; (add-hook 'astro-mode-hook 'eglot-ensure) + |
