config(nvim): add syntax highlighting for .y files

This commit is contained in:
Jacob Bachmann 2024-01-08 17:51:12 +01:00
parent 5093911486
commit 9b09fedcbf
Signed by: bchmnn
GPG key ID: 732A612DAD28067D

View file

@ -1,3 +1,6 @@
-- Options are automatically loaded before lazy.nvim startup -- Options are automatically loaded before lazy.nvim startup
-- Default options that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/options.lua -- Default options that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/options.lua
-- Add any additional options here -- Add any additional options here
-- Set the filetype for .y files to be the same as .lex files
vim.api.nvim_exec([[ au BufRead,BufNewFile *.y set filetype=lex ]], false)