{"repo":"m00qek/baleia.nvim","free":true,"listed":false,"github":"https://github.com/m00qek/baleia.nvim","clone":"git clone https://github.com/m00qek/baleia.nvim.git","description":"Colorize text with ANSI escape sequences (8, 16, 256 or TrueColor)","language":"Lua","stars":208,"topics":["clojure","lua","neovim","neovim-plugin","terminal","terminal-colors"],"license":"MIT","category":"cli-tools","readme_excerpt":"baleia.nvim [![Integration][integration-badge]][integration-runs] Colorize text with ANSI escape sequences (8, 16, 256 or TrueColor). Requirements : Neovim 0.9.0 or higher. Install Using lazy.nvim: Usage & Configuration Baleia exposes functions to colorize buffers. You can use them manually (commands) or automatically (autocmds). 1. Manual Colorization The setup above creates a :BaleiaColorize command. Use this when you open a file with ANSI codes (like a log file) and want to colorize it once. 2. Automatic Colorization (Tailing Logs) To automatically colorize lines as they are appended to a buffer (e.g., when tailing a log file), use baleia.automatically . Example: Colorize all .log files: Example: Colorize Quickfix Window: Setup Options Pass these options to require(\"baleia\").setup({...}) : option default value description ----------------- --------------- --------------------------------------------------------- name \"BaleiaColors\" prefix used to name highlight groups strip ansi codes true remove ANSI color codes from text line starts at 1 (one-indexed) at which column start colorizing colors NR 8 table mapping 256 color codes to vim colors async true highlight asynchronously chunk size 500 number of lines to process per loop iteration (async) With Conjure This can be used to colorize [Conjure][conjure] log buffer. To do it you must tell conjure to not strip ANSI escape codes: Developer API baleia provides two functions, buf set lines and buf set text , that have the same ","default_branch":null,"files":null,"tree":[],"storefront":"/r/m00qek","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/m00qek/baleia.nvim/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}