fei6409 / log-highlight.nvim

Generic log syntax highlighting and filetype management for Neovim
MIT License
55 stars 5 forks source link

logs ended with .gz #3

Closed themakunga closed 1 month ago

themakunga commented 1 month ago

Hi,

I have some issues trying to read logs that some instances that rotates, the logs are something like this,

web.stdout.log1700000.gz

tan-wei commented 1 month ago

It seems that it is not the function the plugin should provide.

themakunga commented 1 month ago

I can still read the logs but without highlight. Is similar to the #2 issue

tan-wei commented 1 month ago

Got it, I think you could define patterns to tell the filetype is log file just like #2 does.

themakunga commented 1 month ago

I fix it with this pattern

pattern = {
  ".*%.log%..*",
  ".*%.log%d+",
  ".*%.log%d+%.?gz?",
},