2020-12-19 19:22:55 +01:00
|
|
|
(tree-sitter-load
|
|
|
|
'python
|
|
|
|
(format "%s/bin/python"
|
|
|
|
(getenv "TREE_SITTER_GRAMMAR_DIR")))
|
|
|
|
|
|
|
|
(setq tree-sitter-major-mode-language-alist
|
|
|
|
'((python-mode . python)))
|
|
|
|
|
|
|
|
|
2020-12-19 20:05:35 +01:00
|
|
|
(define-key evil-normal-state-map (kbd "C-.") #'tree-sitter-move-reset)
|
2020-12-19 19:22:55 +01:00
|
|
|
(define-key evil-normal-state-map (kbd "C-<right>") #'tree-sitter-move-right)
|
2020-12-19 20:18:40 +01:00
|
|
|
(define-key evil-normal-state-map (kbd "C-<left>") #'tree-sitter-move-left)
|
|
|
|
(define-key evil-normal-state-map (kbd "C-<up>") 'tree-sitter-move-up)
|
|
|
|
(define-key evil-normal-state-map (kbd "C-<down>") 'tree-sitter-move-down)
|