From d5b958af9d6343e04b2dcbea4bca256ca084006a Mon Sep 17 00:00:00 2001 From: Riyyi Date: Sat, 3 Jul 2021 15:34:29 +0200 Subject: [PATCH] Add lua/latex lsp server, add restclient --- .config/emacs/config.org | 20 +++++++++++++------- packages | 2 ++ 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/.config/emacs/config.org b/.config/emacs/config.org index 9eb304c..d8f28e4 100644 --- a/.config/emacs/config.org +++ b/.config/emacs/config.org @@ -405,6 +405,7 @@ Setup =org-roam=. :hook (org-roam-backlinks-mode . dot/hook-disable-line-numbers) :hook (org-roam-backlinks-mode . dot/hook-disable-mode-line) :config + (setq org-image-actual-width nil) (setq org-roam-completion-system 'default) (setq org-roam-db-location (expand-file-name "org-roam.db" dot-cache-dir)) (setq org-roam-directory (expand-file-name "./" org-directory)) @@ -545,6 +546,7 @@ On the fly syntax checking. latex-mode org-mode php-mode + sh-mode shell-mode shell-script-mode) . flycheck-mode) @@ -576,7 +578,9 @@ Language Server Protocol. :hook ((c-mode ; clangd c++-mode ; clangd + lua-mode ; lua-language-server php-mode) ; nodejs-intelephense + latex-mode) ; texlab . lsp-deferred) :config (setq lsp-auto-guess-root t) @@ -693,13 +697,15 @@ https://stackoverflow.com/questions/22735895/configuring-a-yasnippet-for-two-sce *** PHP #+BEGIN_SRC emacs-lisp - (use-package php-mode - :defer t - :hook - (php-mode - . (lambda () (progn - (setq indent-tabs-mode t) - (setq lsp-ui-doc-enable t))))) +(use-package php-mode + :defer t + :hook + (php-mode . (lambda () + (setq indent-tabs-mode t) + (setq lsp-ui-doc-enable t)))) + +(use-package restclient + :defer t) #+END_SRC *** Prettify diff --git a/packages b/packages index 4780fa4..587dd0e 100644 --- a/packages +++ b/packages @@ -76,6 +76,7 @@ linux-headers linux-lts linux-lts-headers llvm +lua-language-server-git lvm2 lxappearance maim @@ -140,6 +141,7 @@ streamlink sxhkd synergy2-bin sysfsutils +texlab texlive-bibtexextra texlive-core texlive-fontsextra