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
}) -- save colorscheme
vim.api.nvim_create_autocmd("BufWritePost", {
pattern = "*.ua",
callback = function(ev)
vim.cmd("silent !uiua fmt " .. vim.fn.expand("<amatch>"))
end,
}) -- format uiua on save
vim.api.nvim_create_autocmd("BufWritePost", {
group = "aprzn",
pattern = "*.ua",
callback = function(ev)
vim.cmd("silent !uiua fmt " .. vim.fn.expand("<amatch>"))
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

Loading…
Cancel
Save