From 33a166cf0176f1eb3792bbbfac078f39516a8c2c Mon Sep 17 00:00:00 2001 From: Jeff LANCE Date: Sat, 24 Feb 2024 20:06:01 +0100 Subject: [PATCH] Add home/.config/lvim/lua/user/autocommands.lua --- .../dot_config/lvim/lua/user/autocommands.lua | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 home/dot_config/lvim/lua/user/autocommands.lua diff --git a/home/dot_config/lvim/lua/user/autocommands.lua b/home/dot_config/lvim/lua/user/autocommands.lua new file mode 100644 index 0000000..50c88c0 --- /dev/null +++ b/home/dot_config/lvim/lua/user/autocommands.lua @@ -0,0 +1,47 @@ +--[[-- +File : conf.d/lvim/lua/user/autocommands.lua +Author : Jeff Lance +Date : 23.02.2024 16:47:36 +Last Modified Date: 23.02.2024 16:47:36 +Last Modified By : Jeff Lance +--]]-- + + + +-- Set autocommands +-- +-- Some examples of autocommands definition through lvim api. +-- + +-- local M = {} + +-- M.setup = function() +-- lvim.autocommands = { +-- -- for any files +-- { +-- { "VimEnter" }, +-- { +-- pattern = { "*" }, +-- command = "FloatermNew --width=0.8 --name=terminal --cwd=", +-- } +-- }, +-- -- arduino files +-- { +-- { "BufNewFile", "BufRead" }, +-- { +-- pattern = { "*.ino", ".pde" }, +-- command = "set filetype=arduino", +-- } +-- }, +-- -- asymptote filetype +-- { +-- { "BufNewFile", "BufRead" }, +-- { +-- pattern = { "*.asy" }, +-- command = "set filetype=asy", +-- } +-- }, +-- } +-- end + +-- return M