mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
refactor(treesitter): use string.format to create lines
This commit is contained in:
parent
2eeafc43c4
commit
86ff239240
@ -163,7 +163,8 @@ function TSPlayground:draw(bufnr)
|
||||
for _, item in self:iter() do
|
||||
local range_str = get_range_str(item.lnum, item.col, item.end_lnum, item.end_col)
|
||||
local lang_str = self.opts.lang and string.format(' %s', item.lang) or ''
|
||||
local line = string.rep(' ', item.depth) .. item.text .. '; ' .. range_str .. lang_str
|
||||
local line =
|
||||
string.format('%s%s ; %s%s', string.rep(' ', item.depth), item.text, range_str, lang_str)
|
||||
|
||||
if self.opts.lang then
|
||||
lang_hl_marks[#lang_hl_marks + 1] = {
|
||||
|
Loading…
Reference in New Issue
Block a user