Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Treesitter mode support #100

Closed
rosstimson opened this issue Mar 10, 2024 · 4 comments
Closed

Treesitter mode support #100

rosstimson opened this issue Mar 10, 2024 · 4 comments

Comments

@rosstimson
Copy link

Thank you for your Emacs packages, I use few of them.

Not sure if directly related to the theme or not but when I've switched to using Treesitter modes I lose most of the syntax colouring.

python-mode

python-mode

python-ts-mode

python-ts-mode

@protesilaos
Copy link
Owner

protesilaos commented Mar 11, 2024 via email

@rosstimson
Copy link
Author

Sorry, I should've said, I'm on Emacs 29.2.

Yeah, it's just the built in python-ts-mode, if I show the active major mode then jump to the file the header looks like:

;;; python.el --- Python's flying circus support for Emacs -*- lexical-binding: t -*-

;; Copyright (C) 2003-2024 Free Software Foundation, Inc.

;; Author: Fabián E. Gallina <fgallina@gnu.org>
;; URL: https://github.com/fgallina/python.el
;; Version: 0.28
;; Package-Requires: ((emacs "24.4") (compat "28.1.2.1") (seq "2.23"))
;; Maintainer: emacs-devel@gnu.org
;; Created: Jul 2010
;; Keywords: languages

I've just tried running describe-char when the point is on one of the imports:

python-mode

There is an overlay here:
 From 54 to 69
  face                 hl-line
  priority             -50
  window               #<window 3 on website.py>


There are text properties here:
  face                 font-lock-keyword-face
  fontified            t

python-ts-mode

There is an overlay here:
 From 54 to 69
  face                 hl-line
  priority             -50
  window               #<window 3 on website.py>


There are text properties here:
  fontified            t

So to my uneducated eyes this looks like it may be an issue with python-ts-mode rather than the theme. I should've worked out how to show this before submitting the issue.

Hope this helps.

@protesilaos
Copy link
Owner

protesilaos commented Mar 12, 2024 via email

@rosstimson
Copy link
Author

Thanks, I'll look into doing that over the next couple days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants