nvim: disable autoformat for yaml files
This commit is contained in:
parent
9e8713461e
commit
5ce59c68e1
@ -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,
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user