Treesitter grammar
This commit is contained in:
parent
3ffc4695bf
commit
1b389ab25a
2 changed files with 24 additions and 14 deletions
28
config.org
28
config.org
|
|
@ -61,6 +61,8 @@
|
||||||
- [[#sudo-edit][SUDO EDIT]]
|
- [[#sudo-edit][SUDO EDIT]]
|
||||||
- [[#language-support][Language support]]
|
- [[#language-support][Language support]]
|
||||||
- [[#nix][Nix]]
|
- [[#nix][Nix]]
|
||||||
|
- [[#cmake][CMake]]
|
||||||
|
- [[#global-treesitter][Global treesitter]]
|
||||||
- [[#nerd-icons][Nerd Icons]]
|
- [[#nerd-icons][Nerd Icons]]
|
||||||
- [[#nerd-icons-completion][Nerd Icons Completion]]
|
- [[#nerd-icons-completion][Nerd Icons Completion]]
|
||||||
- [[#buffer-move][Buffer Move]]
|
- [[#buffer-move][Buffer Move]]
|
||||||
|
|
@ -1051,18 +1053,22 @@ Vterm is a terminal emulator within Emacs. The 'shell-file-name' setting sets t
|
||||||
Emacs has built-in programming language modes for Lisp, Scheme, DSSSL, Ada, ASM, AWK, C, C++, Fortran, Icon, IDL (CORBA), IDLWAVE, Java, Javascript, M4, Makefiles, Metafont, Modula2, Object Pascal, Objective-C, Octave, Pascal, Perl, Pike, PostScript, Prolog, Python, Ruby, Simula, SQL, Tcl, Verilog, and VHDL. Other languages will require you to install additional modes.
|
Emacs has built-in programming language modes for Lisp, Scheme, DSSSL, Ada, ASM, AWK, C, C++, Fortran, Icon, IDL (CORBA), IDLWAVE, Java, Javascript, M4, Makefiles, Metafont, Modula2, Object Pascal, Objective-C, Octave, Pascal, Perl, Pike, PostScript, Prolog, Python, Ruby, Simula, SQL, Tcl, Verilog, and VHDL. Other languages will require you to install additional modes.
|
||||||
** Nix
|
** Nix
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package nix-mode
|
(use-package nix-ts-mode
|
||||||
:ensure t
|
:ensure t
|
||||||
:mode ("\\.nix\\'" "\\.nix.in\\'"))
|
:mode "\\.nix\\'")
|
||||||
(use-package nix-drv-mode
|
#+end_src
|
||||||
:ensure nix-mode
|
** CMake
|
||||||
:mode "\\.drv\\'")
|
#+begin_src emacs-lisp
|
||||||
(use-package nix-shell
|
(add-to-list 'auto-mode-alist '("CMakeLists\\.txt\\'" . cmake-ts-mode))
|
||||||
:ensure nix-mode
|
(add-to-list 'auto-mode-alist '("\\.cmake\\'" . cmake-ts-mode))
|
||||||
:commands (nix-shell-unpack nix-shell-configure nix-shell-build))
|
#+end_src
|
||||||
(use-package nix-repl
|
** Global treesitter
|
||||||
:ensure nix-mode
|
#+begin_src emacs-lisp
|
||||||
:commands (nix-repl))
|
(use-package treesit-auto
|
||||||
|
:ensure t
|
||||||
|
:demand t
|
||||||
|
:config
|
||||||
|
(global-treesit-auto-mode))
|
||||||
#+end_src
|
#+end_src
|
||||||
* Nerd Icons
|
* Nerd Icons
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
|
|
|
||||||
|
|
@ -53,7 +53,7 @@
|
||||||
# This can also include extra executables to be run by Emacs (linters,
|
# This can also include extra executables to be run by Emacs (linters,
|
||||||
# language servers, formatters, etc)
|
# language servers, formatters, etc)
|
||||||
extraEmacsPackages = epkgs:
|
extraEmacsPackages = epkgs:
|
||||||
with pkgs; [
|
(with pkgs; [
|
||||||
#nerd-fonts.jetbrains-mono
|
#nerd-fonts.jetbrains-mono
|
||||||
#jetbrains-mono
|
#jetbrains-mono
|
||||||
unzip
|
unzip
|
||||||
|
|
@ -61,7 +61,11 @@
|
||||||
imagemagick
|
imagemagick
|
||||||
fontconfig
|
fontconfig
|
||||||
freetype
|
freetype
|
||||||
];
|
] ++ (with epkgs;[
|
||||||
|
tree-sitter
|
||||||
|
tree-sitter-langs
|
||||||
|
treesit-grammars.with-all-grammars
|
||||||
|
]));
|
||||||
|
|
||||||
# Optionally override derivations.
|
# Optionally override derivations.
|
||||||
override = final: prev: {
|
override = final: prev: {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue