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

Compatibility with tree-sitter #33

Open
NoahTheDuke opened this issue May 30, 2023 · 2 comments · May be fixed by #31
Open

Compatibility with tree-sitter #33

NoahTheDuke opened this issue May 30, 2023 · 2 comments · May be fixed by #31
Labels
indentation Affects indentation

Comments

@NoahTheDuke
Copy link

Hey friends,

The indentation system is built on the syntax highlighting to know how to interpret things like \{. If I use nvim-treesitter (which relies on this grammar) and disable nvim's syntax highlighting, indentation is completely broken.

I don't want to lose the nice indentation provided by this plugin (as there is no indentation information for Clojure in nvim-treesitter), but enabling both vimscript syntax highlighting and treesitter highlighting is bad and slow.

Any suggestions on how to handle this?

@axvr
Copy link
Member

axvr commented May 30, 2023

Hi, I don't think it'll help much but you could try adding this line to your config:

autocmd! FileType clojure let b:clojure_syntax_without_core_keywords = 1

Otherwise you will have to wait for #31 to be finished, the changes in that PR include the decoupling of indentation from syntax highlighting.

@NoahTheDuke
Copy link
Author

Oh excellent, I forgot about that issue. I'll keep track of it! Thanks.

@axvr axvr added the indentation Affects indentation label Jun 23, 2023
@axvr axvr linked a pull request Jun 23, 2023 that will close this issue
16 tasks
@axvr axvr added this to the Indentation overhaul milestone Jun 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
indentation Affects indentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants