Replies: 5 comments 5 replies
-
Very nice! Love your color scheme, too. Thank you for sharing. |
Beta Was this translation helpful? Give feedback.
-
Really nice share! Thanks bro. |
Beta Was this translation helpful? Give feedback.
-
Hey @lkhphuc, is it okay with you for me to add this as an example in the README, along with the screenshot? |
Beta Was this translation helpful? Give feedback.
-
There is a slight change to be made here to maintain the code compatible with next nvim versions, local modified = vim.api.nvim_get_option_value("modified", { buf = props.buf })
and "bold,italic" or "bold"
P.S: very nice plugin! And very nice config for it! |
Beta Was this translation helpful? Give feedback.
-
In case someone is looking for local function get_diagnostic_label()
local icons = { { "error", '' }, { "warn", '' }, { "info", '' }, { "hint", '' } }
local label = {}
local ok, diag = pcall(vim.api.nvim_buf_get_var, props.buf, "coc_diagnostic_info")
if not ok then return label end
for i, count in ipairs({ diag.error, diag.warning, diag.information, diag.hint }) do
if count > 0 then
local severity, icon = unpack(icons[i])
table.insert(label, { icon .. " " .. count .. " ", group = "DiagnosticSign" .. severity })
end
end
if #label > 0 then table.insert(label, { "┊ " }) end
return label
end
|
Beta Was this translation helpful? Give feedback.
-
Inspired by #31 , I copied the code and added gitsign integration.
I still use lualine but this obviates my need for tabline.
Cheers.
Beta Was this translation helpful? Give feedback.
All reactions