nixvim: show active formatter in lualine, prefer biome when available

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
This commit is contained in:
2026-03-11 19:54:09 +09:00
co-authored by Claude Sonnet 4.6
parent 137a561907
commit 63cc96656f
2 changed files with 28 additions and 6 deletions
+23 -1
View File
@@ -1,3 +1,25 @@
{...}: {
programs.nixvim.plugins.lualine.enable = true;
programs.nixvim.plugins.lualine = {
enable = true;
settings.sections.lualine_x = [
{
__raw = ''
function()
local ok, conform = pcall(require, "conform")
if not ok then return "" end
local formatters = conform.list_formatters(0)
for _, f in ipairs(formatters) do
if f.available then
return "󰛖 " .. f.name
end
end
return ""
end
'';
}
"encoding"
"fileformat"
"filetype"
];
};
}