Skip to content

Commit d214a63

Browse files
authored
Update README.md
1 parent 4825fb7 commit d214a63

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,19 @@ Recommended `eglot` configuration:
5959
"--malloc-trim")))
6060
```
6161

62+
Recommended `tree-sitter` configuration:
63+
```emacs lisp
64+
(when (treesit-available-p)
65+
(use-package treesit
66+
:ensure t
67+
:init (setq treesit-extra-load-path
68+
(gptel-cpp-complete--get-treesit-extra-load-path)
69+
major-mode-remap-alist
70+
'((c-mode . c-ts-mode)
71+
(c++-mode . c++-ts-mode))
72+
treesit-font-lock-level 4)))
73+
```
74+
6275
---
6376

6477
## Installation

0 commit comments

Comments
 (0)