-
At present, when I change the fileformat of a file with |
Beta Was this translation helpful? Give feedback.
Answered by
benfrain
Jul 19, 2024
Replies: 1 comment
-
Figured this out, I was just using the wrong commands. Lualine updates just fine if using the lualine_x = {
{
"fileformat",
icons_enabled = true,
symbols = {
unix = "LF",
dos = "CRLF",
mac = "CR",
},
},
},
In case anyone wants a couple of mappings to toggle EOL from LF (unix) to CRLF (dos) km.set({ "n" }, "<Leader>xl", ":set ff=dos<CR>", { desc = "EOL = CRLF" })
km.set({ "n" }, "<Leader>xu", ":set ff=unix<CR>", { desc = "EOL = LF" }) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
benfrain
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Figured this out, I was just using the wrong commands. Lualine updates just fine if using the
lualine_x
from the wiki:In case anyone wants a couple of mappings to toggle EOL from LF (unix) to CRLF (dos)