Elixir support #221
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
barrettruth/diffs.nvim#221
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Prerequisites
Neovim version
Operating system
MacOS
Description
I seem to be unable to get fugitive highlighting to work with Elixir files, even though I do have the elixir TS files installed (I use it for highlighting generally).
Also note, in your repro script, you need to change the module name to just
"lazy"not"lazy.nvim"When I test the minimal repro script, and test out fugitive, I end up seeing TS highlighting in non-elixir files, but no TS highlighting in elixir files.
Steps to reproduce
Health check
Minimal reproduction
bruh, another problem with the repro script LMAO. sorry. looking into this now (repro + issue)
EDIT: repro script no longer uses lazy and works. gosh... i hate lazy. looking into the highlighting issue now.
UPD: unable to reproduce with some sample code.
Please try with the up-to-date reproduction script. Apologies for the inconvenience.
Obligatory mention: please check your plugins, try with
nvim --noplugin, etc.Hmm that’s weird, yeah it didn’t look like that at all for me… but let me try the new version of the script and see if that’s the difference.
I will try that no plugin flag, I thought passing it the script disabled all my other startup files plugins but maybe it didn’t.
(it probably did - i was just being cautious)
BTW, if you want - link me your dotfiles. I can debug for you xd (or, do my best to)
ok @barrettruth I tested with the new version of that script, and using
--clean, which should disable all my plugins, and I can confirm that I don't seem to be getting any elixir highlighting in fugitive status buffer diffs. Just looks exactly identical to regular diff highlights.I think you should be able to repro this the same way... just try cloneing an elixir library on github, change some files, then put your script in the repo and run it the same way, open fugitive, and you should be able to confirm that the highlighting isn't there
Just to be sure I also backed up and deleted my init.lua, and tested again, just in case
--cleanwasn't actually removing my startup stuff, and I can confirm it looked the same.I am not really sure why it would work differently with elixir... maybe something to do with how the TS stuff is implemented for it? I have no idea.
Is it possible that the startup script isn't using a colorscheme that has the proper highlights for me to see it properly when testing with it or something?
I could also try just going into my startup script and removing everything except for this plugin, fugitive, and treesitter stuff, but I'd think the repro script should be identical to that...
Only other thing I can think of if you can't repro it is some difference with my treesitter versions of vim versions or something?
Super sorry that you ended up being the guinea-pig for this. I've updated the repro script to use the user's treesitter scripts in the environment in the repo for simplicity. Please try again.