Eandrju / cellular-automaton.nvim

A useless plugin that might help you cope with stubbornly broken tests or overall lack of sense in life. It lets you execute aesthetically pleasing, cellular automaton animations based on the content of neovim buffer.
MIT License
1.89k stars 35 forks source link

no syntax highlighting for nvim in alacritty #16

Closed Dowwie closed 1 year ago

Dowwie commented 1 year ago

when I apply either cellular automaton effect within nvim v0.8.2 using alacritty terminal, and tmux, within macos, all syntax highlighting is lost

WuerfelDev commented 1 year ago

Can't confirm. I have a similar setup with alacritty 0.11.0, nvim 0.8.2, tmux 3.3a, macOS 13.1

Do you use a custom color scheme? Maybe your problem is related to it?

Eandrju commented 1 year ago

@Dowwie Do you have treesitter plugin enabled?

Dowwie commented 1 year ago

I have treesitter installed via Plug and also TSInstall'd for the language I tested with (rust)

Eandrju commented 1 year ago

Could you try to update the plugin with latest changes? I've added some additional checks, that should raise an error if something is wrong.

Dowwie commented 1 year ago

I ran :PlugUpdate and then applied the plugin over rust code. Still, no syntax highlighting. Also, no errors were raised.

Eandrju commented 1 year ago

Strange as I use the same configuration - tmux/alacritty/macos. Could you share the config files, I will try to reproduce it

dinkopehar commented 1 year ago

Just found this thread.

I'm on similar path as @Dowwie . With nix package manager enabled on MacOS, I have tested this on various terminal and can confirm it always loses colorscheme.

Here is some info that may be useful to you:

NVIM v0.8.2
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by _nixbld1

Features: +acl +iconv +tui
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "
/nix/store/w4yaqdag8bmx23nbzv5jc9j39dixlj75-neovim-unwrapped-0.8.2/share/nvim
"

EDIT:

If it helps anyhow, here are my dotfiles related to Neovim (you can ignore default.nix, it's not used).

dinkopehar commented 1 year ago

I found solution to my problem.

I installed wanted Tree sitter plugins as before, but also there is some option :TSToogle highlight and the highlight started to appear. I'm not familiar with TreeSitter, thought the installation of plugins were enough. Will take some time to understand everything about treesitter.

Thank you for the plugin btw 🚀 .

Nacho114 commented 1 year ago

I found solution to my problem.

I installed wanted Tree sitter plugins as before, but also there is some option :TSToogle highlight and the highlight started to appear. I'm not familiar with TreeSitter, thought the installation of plugins were enough. Will take some time to understand everything about treesitter.

Thank you for the plugin btw 🚀 .

Worked for me as well! Plus, I was finally able to use TreeSitter, I had the plugin but it was not active 😂 -- Since I have coc as well I already had partial highlighting.

Eandrju commented 1 year ago

:TSToogle highlight to the rescue it appears 👍