From 9b09fedcbfe694bccfe2f13a91c0851a738822aa Mon Sep 17 00:00:00 2001 From: Jacob Bachmann Date: Mon, 8 Jan 2024 17:51:12 +0100 Subject: [PATCH] config(nvim): add syntax highlighting for .y files --- users/gandalf/modules/neovim/config/lua/config/options.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/users/gandalf/modules/neovim/config/lua/config/options.lua b/users/gandalf/modules/neovim/config/lua/config/options.lua index 3ea1454..77ef947 100644 --- a/users/gandalf/modules/neovim/config/lua/config/options.lua +++ b/users/gandalf/modules/neovim/config/lua/config/options.lua @@ -1,3 +1,6 @@ -- 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 -- 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)