From 0bd4eaf71097105e74a3bf85ac2e39f553c0a5b5 Mon Sep 17 00:00:00 2001 From: Tyler Hallada Date: Fri, 1 Dec 2023 15:26:01 -0500 Subject: [PATCH] Fix syntax highlighting for ruby config files --- lua/user/settings.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lua/user/settings.lua b/lua/user/settings.lua index 680d4e6..f570c68 100644 --- a/lua/user/settings.lua +++ b/lua/user/settings.lua @@ -90,6 +90,11 @@ vim.api.nvim_create_autocmd('TextYankPost', { pattern = '*', }) +vim.api.nvim_create_autocmd({'BufNewFile', 'BufRead'}, { + command = 'set filetype=ruby', + pattern = {'Podfile', 'Fastfile', 'Matchfile', 'Pluginfile', 'Appfile', 'Deliverfile'}, +}) + vim.opt.fillchars:append { diff = "╱" } vim.api.nvim_command([[colorscheme gruvbox]])