mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-06 01:18:30 +09:00
26 lines
581 B
Nix
26 lines
581 B
Nix
_: {
|
|
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"
|
|
];
|
|
};
|
|
}
|