{"id":30166567,"url":"https://github.com/fei6409/log-highlight.nvim","last_synced_at":"2026-02-03T07:16:34.005Z","repository":{"id":154235169,"uuid":"631986425","full_name":"fei6409/log-highlight.nvim","owner":"fei6409","description":"Generic log syntax highlighting and log filetype management for Neovim","archived":false,"fork":false,"pushed_at":"2025-09-11T16:20:09.000Z","size":3108,"stargazers_count":113,"open_issues_count":1,"forks_count":8,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-09-11T19:16:06.193Z","etag":null,"topics":["neovim","neovim-plugin","syntax-highlighting","vim","vim-plugin"],"latest_commit_sha":null,"homepage":"","language":"Vim Script","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fei6409.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-04-24T13:28:12.000Z","updated_at":"2025-09-11T16:20:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"1cc0bfef-5087-45f4-b4be-407fa25b7263","html_url":"https://github.com/fei6409/log-highlight.nvim","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/fei6409/log-highlight.nvim","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fei6409%2Flog-highlight.nvim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fei6409%2Flog-highlight.nvim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fei6409%2Flog-highlight.nvim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fei6409%2Flog-highlight.nvim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fei6409","download_url":"https://codeload.github.com/fei6409/log-highlight.nvim/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fei6409%2Flog-highlight.nvim/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29037061,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-03T06:39:36.383Z","status":"ssl_error","status_checked_at":"2026-02-03T06:39:32.787Z","response_time":96,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["neovim","neovim-plugin","syntax-highlighting","vim","vim-plugin"],"created_at":"2025-08-11T19:01:49.087Z","updated_at":"2026-02-03T07:16:34.001Z","avatar_url":"https://github.com/fei6409.png","language":"Vim Script","readme":"# log-highlight.nvim\n\nA simple and lightweight Neovim plugin that brings syntax highlighting to\ngeneric log files and provides straightforward configuration to manage filetype\ndetection rules and custom keyword highlighting for your logs.\n\n![preview-1](./doc/images/messages.png)\n\n![preview-2](./doc/images/patterns-1.png)\n\n![preview-3](./doc/images/patterns-2.png)\n\n## Installation\n\nUse your favorite plugin manager to install the plugin.\n\n### [lazy.nvim](https://github.com/folke/lazy.nvim)\n\n```lua\n{\n    'fei6409/log-highlight.nvim',\n    opts = {},\n},\n```\n\n### [vim-plug](https://github.com/junegunn/vim-plug)\n\n```vim\nPlug 'fei6409/log-highlight.nvim'\n```\n\nDon't forget to add `syntax on` in your `.vimrc`, `init.vim`, or `init.lua` to\nenable syntax highlighting.\n\n## Configuration\n\n### Neovim\n\nThis plugin uses Neovim's built-in\n[filetype detection](https://neovim.io/doc/user/filetype.html) mechanism.\n\nBy default, the `log` filetype is only applied to files with `.log` extension\n(e.g., `sys.log`) after setup.\n\nTo further configure filetype detection rules and other options:\n\n```lua\nrequire('log-highlight').setup {\n    ---@type string|string[]: File extensions. Default: 'log'\n    extension = 'log',\n\n    ---@type string|string[]: File names or full file paths. Default: {}\n    filename = {\n        'syslog',\n    },\n\n    ---@type string|string[]: File name/path glob patterns. Default: {}\n    pattern = {\n        -- Use `%` to escape special characters and match them literally.\n        '%/var%/log%/.*',\n        'console%-ramoops.*',\n        'log.*%.txt',\n        'logcat.*',\n    },\n\n    ---@type table\u003cstring, string|string[]\u003e: Custom keywords to highlight.\n    ---This allows you to define custom keywords to be highlighted based on\n    ---the group.\n    ---\n    ---The following highlight groups are supported:\n    ---    'error', 'warning', 'info', 'debug' and 'pass'.\n    ---\n    ---The value for each group can be a string or a list of strings.\n    ---All groups are empty by default. Keywords are case-sensitive.\n    keyword = {\n        error = 'ERROR_MSG',\n        warning = { 'WARN_X', 'WARN_Y' },\n        info = { 'INFORMATION' },\n        debug = {},\n        pass = {},\n    },\n}\n```\n\n### Vim\n\nBy default, the `log` filetype is applied to files matching `*.log` or `*_log`.\n\nYou can customize filetype rules by adding autocommands to `.vimrc` like this:\n\n```vim\nautocmd BufNewFile,BufRead /var/log/* set filetype=log\n```\n\n## Release Notes\n\n- v1.2.1: Fix bug that may write the syntax file in directory with no permission\n- v1.2.0: Allow keyword customization in selected range\n- v1.1.0: Add more pattern highlighting to log levels, date \u0026 time, hex numbers,\n  MAC addresses, and Windows and POSIX paths\n- v1.0.1: Add support for [spdlog](https://github.com/gabime/spdlog)-style and\n  lowercase log levels\n- v1.0.0: Perform minor cleanup and mark official release\n- v0.0.2: Add more support for HDL\n- v0.0.1: Initial release\n\n## Contributing\n\nBug reports, feature requests, and pull requests are welcome. When opening an\nissue or PR, please consider attaching a snippet of the relevant log pattern.\n\nIf you are submitting a pull request, please also consider adding new log\nsamples to the `samples/` directory:\n\n- For atomic patterns or small snippets, add them to `patterns.log`.\n- For longer, real-world log examples, create a new file.\n\nThis helps verify that new changes do not break existing syntax highlighting.\n\n## Acknowledgements\n\n- [vim-log-highlighting](https://github.com/MTDL9/vim-log-highlighting) by MTDL9\n- [Built-in messages.vim](https://github.com/vim/vim/blob/master/runtime/syntax/messages.vim)\n\n## License\n\nThis project is licensed under the [MIT License](LICENSE).\n","funding_links":[],"categories":["Syntax"],"sub_categories":["Assembly"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffei6409%2Flog-highlight.nvim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffei6409%2Flog-highlight.nvim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffei6409%2Flog-highlight.nvim/lists"}