2023-09-17 23:36:17 +02:00
|
|
|
-- 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
|
2024-02-12 15:25:27 +01:00
|
|
|
|
|
|
|
local function augroup(name)
|
|
|
|
return vim.api.nvim_create_augroup("lazyvim_" .. name, { clear = true })
|
|
|
|
end
|
|
|
|
|
|
|
|
-- Set comment string for CUE files
|
|
|
|
vim.api.nvim_create_autocmd("FileType", {
|
|
|
|
group = augroup("cue"),
|
|
|
|
pattern = { "cue" },
|
|
|
|
callback = function(ev)
|
|
|
|
vim.bo[ev.buf].commentstring = "// %s"
|
|
|
|
end,
|
|
|
|
})
|