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

Refactor/treesitter highlights #9

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

mushfiq814
Copy link
Owner

No description provided.

before attempting to move the whole operation to nvim_set_hl, I chose to
incrementally adopt by making the API of the highlight function the same
(or as close as needed) to nvim_set_hl.

This means I can pass in args just like nvim_set_hl would expect and
internally I can translate that to what vim.cmd("hi! ...") would need.
according to :help `breakindent`: Every wrapped line will continue
visually indented (same amount of space as the beginning of that line),
thus preserving horizontal blocks of text.
* instead of calling hi like hi.Key = Val, I want to set a table of
  highlights with key/vals and then iterate through them and apply them
  one at a time. Previously I was using the `__newindex` metatable
  method to turn this function call into a modifiable table but now that
  there is no need for that, the highlight function can be a normal
  function
* organize highlight groups
* style changes ' -> "
* also add new highlights for dashboard
this is still not a 100% done. There are still a few highlight groups
that I need to fix like floating windows and popups (which still show up
as transparent)
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

Successfully merging this pull request may close these issues.

None yet

1 participant