mirror of
https://github.com/zoriya/auto-save.nvim.git
synced 2026-08-09 07:37:58 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user