stylua added rule

This commit is contained in:
2026-06-20 03:44:26 +02:00
parent 907b234eb7
commit 6fb33b02cd
13 changed files with 154 additions and 145 deletions
+6 -4
View File
@@ -6,12 +6,14 @@ local neoformat_group = augroup("NeoformatOnSave", { clear = true })
autocmd("BufWritePost", {
group = neoformat_group,
callback = function()
if vim.bo.buftype ~= "" or vim.bo.modifiable == false or vim.bo.readonly then
return
end
if vim.fn.exists ":Neoformat" ~= 2 then
if
vim.bo.buftype ~= ""
or vim.bo.modifiable == false
or vim.bo.readonly
then
return
end
if vim.fn.exists ":Neoformat" ~= 2 then return end
vim.cmd "silent! Neoformat"
end,
})