Browse Source

Add lua/latex lsp server, add restclient

master
Riyyi 4 years ago
parent
commit
d5b958af9d
  1. 20
      .config/emacs/config.org
  2. 2
      packages

20
.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

2
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

Loading…
Cancel
Save