nvim: disable autoformat for yaml files

This commit is contained in:
Julien Rabier 2025-02-19 15:05:20 +01:00
parent 9e8713461e
commit 5ce59c68e1

View File

@ -1,3 +1,10 @@
-- 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
-- Disable autoformat for lua files
vim.api.nvim_create_autocmd({ "FileType" }, {
pattern = { "yaml" },
callback = function()
vim.b.autoformat = false
end,
})