mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-29 03:26:13 +01:00
Emacs stuff
Signed-off-by: Magic_RB <magic_rb@redalder.org>
This commit is contained in:
parent
99be4b8eda
commit
889e2c99e0
|
@ -250,6 +250,17 @@
|
|||
#+END_SRC
|
||||
|
||||
* Languages
|
||||
*** C/C++
|
||||
|
||||
Enable ~ccls~.
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(use-package ccls
|
||||
:straight t
|
||||
:hook (c-mode . lsp)
|
||||
(c++-mode . lsp))
|
||||
#+END_SRC
|
||||
|
||||
*** Nix Expression Language
|
||||
|
||||
Enable ~nix-mode~.
|
||||
|
@ -427,6 +438,17 @@
|
|||
:mode ("\\.rs\\'" . rustic-mode))
|
||||
#+END_SRC
|
||||
* LSP
|
||||
*** envrc
|
||||
|
||||
Enable ~envrc~, which changes ENVs on a per buffer basis.
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(use-package envrc
|
||||
:straight t
|
||||
:init
|
||||
(envrc-global-mode))
|
||||
#+END_SRC
|
||||
|
||||
*** lsp-mode
|
||||
|
||||
Increase GC threshold to avoid random freezes on garbage collection.
|
||||
|
|
|
@ -35,6 +35,7 @@ in
|
|||
(rWrapper.override { packages = []; })
|
||||
|
||||
gnumake
|
||||
ccls
|
||||
] ++ [
|
||||
rnix-lsp
|
||||
] ++ [
|
||||
|
|
Loading…
Reference in a new issue