activate eglod mode for Deno projects

This commit is contained in:
Xavier Brinon 2024-01-20 20:59:39 +00:00
parent aa4a69d90f
commit 84d1937284

17
init.el
View File

@ -108,7 +108,7 @@
("account" "%(binary) -f %(ledger-file) reg %(account)")))
'(org-agenda-files '("~/Documents/agenda.org"))
'(package-selected-packages
'(company-ledger flycheck-ledger ledger-mode ellama 0blayout magit magit-annex magit-commit-mark magit-delta magit-diff-flycheck magit-filenotify magit-find-file magit-gerrit magit-gh-pulls magit-gitflow magit-imerge magit-lfs magit-org-todos magit-p4 magit-patch-changelog magit-popup magit-rbr magit-reviewboard magit-stats magit-stgit magit-svn magit-tbdiff magit-todos magit-topgit magit-vcsh magithub mermaid-mode mermaid-ts-mode ob-mermaid rust-mode company-web company elfeed-autotag elfeed-curate elfeed-dashboard elfeed-goodies elfeed-org elfeed-protocol elfeed-score elfeed-summary elfeed-tube-mpv elfeed-web elfeed-webkit smex typescript-mode deno-fmt flycheck-deno ob-deno flycheck emms racket-mode pdf-tools))
'(gptel company-ledger flycheck-ledger ledger-mode ellama 0blayout magit magit-annex magit-commit-mark magit-delta magit-diff-flycheck magit-filenotify magit-find-file magit-gerrit magit-gh-pulls magit-gitflow magit-imerge magit-lfs magit-org-todos magit-p4 magit-patch-changelog magit-popup magit-rbr magit-reviewboard magit-stats magit-stgit magit-svn magit-tbdiff magit-todos magit-topgit magit-vcsh magithub mermaid-mode mermaid-ts-mode ob-mermaid rust-mode company-web company elfeed-autotag elfeed-curate elfeed-dashboard elfeed-goodies elfeed-org elfeed-protocol elfeed-score elfeed-summary elfeed-tube-mpv elfeed-web elfeed-webkit smex typescript-mode deno-fmt flycheck-deno ob-deno flycheck emms racket-mode pdf-tools))
'(safe-local-variable-values '((my-variables . value)))
'(warning-suppress-log-types '((comp))))
'(warning-suppress-types '((comp) (comp) (comp)))
@ -129,15 +129,15 @@
(shell . t)))
;; Deno config with eglot
;; (add-to-list 'eglot-server-programs '((js-mode typescript-mode) . (eglot-deno "deno" "lsp")))
(add-to-list 'eglot-server-programs '((js-mode typescript-mode) . (eglot-deno "deno" "lsp")))
;; (defclass eglot-deno (eglot-lsp-server) ()
;; :documentation "A custom class for deno lsp.")
(defclass eglot-deno (eglot-lsp-server) ()
:documentation "A custom class for deno lsp.")
;; (cl-defmethod eglot-initialization-options ((server eglot-deno))
;; "Passes through required deno initialization options"
;; (list :enable t
;; :lint t))
(cl-defmethod eglot-initialization-options ((server eglot-deno))
"Passes through required deno initialization options"
(list :enable t
:lint t))
;; Remap list buffers =C-x C-b= with the ibuffer command
(global-set-key [remap list-buffers] 'ibuffer)
@ -155,4 +155,3 @@
(require 'ocp-indent)
;;; init.el ends here