style: add and apply stylua config

Made it compatible with the .editorconfig already present and didn't
introduce any bells and whistles beyond that. Fixed the typo in
.editorconfig indent_style while I was at it.
This commit is contained in:
Oula Kuuva
2023-02-12 17:39:05 +02:00
committed by okuuva
parent 979b6c82f6
commit fc7c13d755
5 changed files with 134 additions and 140 deletions
+1 -2
View File
@@ -16,8 +16,7 @@ Config = {
local fn = vim.fn
local utils = require("auto-save.utils.data")
if fn.getbufvar(buf, "&modifiable") == 1 and
utils.not_in(fn.getbufvar(buf, "&filetype"), {}) then
if fn.getbufvar(buf, "&modifiable") == 1 and utils.not_in(fn.getbufvar(buf, "&filetype"), {}) then
return true -- met condition(s), can save
end
return false -- can't save