gui.lua 716 B

1234567891011121314151617181920
  1. -----------------------------------------------------------
  2. -- set Font
  3. -----------------------------------------------------------
  4. vim.api.nvim_create_autocmd({'UIEnter'}, {
  5. callback = function(event)
  6. local client = vim.api.nvim_get_chan_info(vim.v.event.chan).client
  7. if client ~= nil and client.name == "Firenvim" then
  8. vim.api.nvim_exec([[:set guifont=Nerd:h13]], false)
  9. vim.api.nvim_exec([[:set syntax=c]], false)
  10. end
  11. end
  12. })
  13. vim.api.nvim_create_autocmd({'UILeave'}, {
  14. callback = function(event)
  15. local client = vim.api.nvim_get_chan_info(vim.v.event.chan).client
  16. if client ~= nil and client.name == "Firenvim" then
  17. end
  18. end
  19. })