diff --git a/configs/nvim/lua/autocmds.lua b/configs/nvim/lua/autocmds.lua index aa9ed8b..7bd91ec 100644 --- a/configs/nvim/lua/autocmds.lua +++ b/configs/nvim/lua/autocmds.lua @@ -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("")) - 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("")) + 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