set font to Uiua386 when in a uiua file

main
aprzn 1 year ago
parent bd15d63e45
commit 2b9a9ee4b6

@ -31,11 +31,26 @@ vim.api.nvim_create_autocmd("ColorScheme", {
end end
}) -- save colorscheme }) -- save colorscheme
vim.api.nvim_create_autocmd("BufWritePost", { vim.api.nvim_create_autocmd("BufWritePost", {
pattern = "*.ua", group = "aprzn",
callback = function(ev) pattern = "*.ua",
vim.cmd("silent !uiua fmt " .. vim.fn.expand("<amatch>")) callback = function(ev)
end, vim.cmd("silent !uiua fmt " .. vim.fn.expand("<amatch>"))
}) -- format uiua on save end,
}) -- format uiua on save
vim.api.nvim_create_autocmd("FileType", {
group = "aprzn",
pattern = "*",
callback = function(ev)
if vim.g.neovide then
if ev.match == "uiua" then
vim.o.guifont = "Uiua386:h14"
else
vim.o.guifont = "FiraCode Nerd Font:h14"
end
end
end,
})
return false return false

Loading…
Cancel
Save