Skip to content

Commit 68cf232

Browse files
committed
document treesit-font-lock-level in readme
fixes KaranAhlawat#12
1 parent 0a34b23 commit 68cf232

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.org

+9
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,15 @@ To install the package, you can use any Emacs package manager of your choice, to
3030

3131
Then, you can simply call ~scala-ts-mode~ in a Scala buffer.
3232

33+
* Configuration
34+
You may wish to customize `treesit-font-lock-level`, using `M-x customize-variable` or by adding a line such as this to your `~/.emacs.el`:
35+
36+
#+begin_src emacs-lisp
37+
(setq treesit-font-lock-level 4)
38+
#+end_src
39+
40+
The default font lock level is 3. At that level, not as many constructs are highlighted as you might like. Increasing it to 4 results in richer highlighting.
41+
3342
* Contributions
3443
Contributions are welcome! These can be in the form of PRs, Issues, or any other way you can think of. This is my first package, so please don't hold back :)
3544

0 commit comments

Comments
 (0)