Automatically apply skeleton snippets to certain filetypes if configured

This commit is contained in:
2025-08-26 03:39:00 +02:00
parent 0dc1eeaaf5
commit 6491093ae3
4 changed files with 54 additions and 3 deletions

View File

@@ -126,3 +126,13 @@ vim.api.nvim_create_autocmd("FileType", {
vim.opt_local.foldmethod = "marker"
end,
})
-- snippets
vim.api.nvim_create_autocmd("FileType", {
pattern = "snippets",
group = configgroup,
callback = function()
vim.opt_local.expandtab = false
vim.opt_local.shiftwidth = 2
vim.opt_local.tabstop = 4
end,
})