From 9d97a6891edc7d1a58a74c04e1b221a8ef9352b7 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Thu, 14 Sep 2023 14:27:25 +0000 Subject: [PATCH] what --- config/emacs/emacs.org | 12 ++++++++++-- config/emacs/init.el | 5 +++++ 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/config/emacs/emacs.org b/config/emacs/emacs.org index 5f95915e..dfbba49b 100644 --- a/config/emacs/emacs.org +++ b/config/emacs/emacs.org @@ -470,7 +470,6 @@ make sure to setup authinfo (setq auth-sources '("~/.authinfo")) #+end_src *** Lsp-mode -#+end_src **** Language Servers #+begin_src emacs-lisp (defun sakomacs/lsp-mode-setup () @@ -497,13 +496,22 @@ make sure to setup authinfo (use-package lsp-treemacs :after lsp) #+end_src +**** lsp-ivy +#+begin_src emacs-lisp +(use-package lsp-ivy) +#+end_src **** Languages -***** Typescript +***** Javascript #+begin_src emacs-lisp (use-package js2-mode :mode "\\.js\\'" :hook (js2-mode . lsp-deferred)) #+end_src +*** Commenter +#+begin_src emacs-lisp + (use-package evil-nerd-commenter + :bind ("M-/" . evilnc-comment-or-uncomment-lines)) +#+end_src *** Company Mode (Better Autocompletion) #+begin_src emacs-lisp (use-package company diff --git a/config/emacs/init.el b/config/emacs/init.el index 44983dd9..4094314a 100644 --- a/config/emacs/init.el +++ b/config/emacs/init.el @@ -427,10 +427,15 @@ (use-package lsp-treemacs :after lsp) +(use-package lsp-ivy) + (use-package js2-mode :mode "\\.js\\'" :hook (js2-mode . lsp-deferred)) +(use-package evil-nerd-commenter +:bind ("M-/" . evilnc-comment-or-uncomment-lines)) + (use-package company :after lsp-mode :hook (lsp-mode . company-mode)