1
0

Add home/.config/lvim/lua/user/autocommands.lua

This commit is contained in:
Jeff Lance 2024-02-24 20:06:01 +01:00
parent 15e2b04f41
commit 33a166cf01

View File

@ -0,0 +1,47 @@
--[[--
File : conf.d/lvim/lua/user/autocommands.lua
Author : Jeff Lance <email@jefflance.me>
Date : 23.02.2024 16:47:36
Last Modified Date: 23.02.2024 16:47:36
Last Modified By : Jeff Lance <email@jefflance.me>
--]]--
-- 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=<buffer>",
-- }
-- },
-- -- arduino files
-- {
-- { "BufNewFile", "BufRead" },
-- {
-- pattern = { "*.ino", ".pde" },
-- command = "set filetype=arduino",
-- }
-- },
-- -- asymptote filetype
-- {
-- { "BufNewFile", "BufRead" },
-- {
-- pattern = { "*.asy" },
-- command = "set filetype=asy",
-- }
-- },
-- }
-- end
-- return M