From df058bbe255bb22d32f5c0eb334364b0c8f6ebd1 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Tue, 16 May 2023 15:52:02 -0500 Subject: [PATCH] let's play with knitfiles more --- home/private_dot_config/nvim/lua/config/autocmds.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/home/private_dot_config/nvim/lua/config/autocmds.lua b/home/private_dot_config/nvim/lua/config/autocmds.lua index 27e9e06..37d3dd5 100644 --- a/home/private_dot_config/nvim/lua/config/autocmds.lua +++ b/home/private_dot_config/nvim/lua/config/autocmds.lua @@ -1,3 +1,7 @@ -- Autocmds are automatically loaded on the VeryLazy event -- Default autocmds that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/autocmds.lua -- Add any additional autocmds here +vim.api.nvim_create_autocmd({ "BufEnter", "BufWinEnter" }, { + pattern = { "Knitfile" }, + command = "set syntax=lua", +})