config(nvim): add syntax highlighting for .y files
This commit is contained in:
parent
5093911486
commit
9b09fedcbf
1 changed files with 3 additions and 0 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue