Skip to content

Commit ed14887

Browse files
authored
fix(auto-save-nvim): improve compatibility with fyler.nvim (#1669)
fix(auto-save-nvim): auto saving in fyler
1 parent 3f89cb0 commit ed14887

File tree

1 file changed

+9
-1
lines changed
  • lua/astrocommunity/editing-support/auto-save-nvim

1 file changed

+9
-1
lines changed

lua/astrocommunity/editing-support/auto-save-nvim/init.lua

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,13 @@ return {
4646
},
4747
},
4848
},
49-
opts = {},
49+
opts = {
50+
condition = function(buf)
51+
if vim.tbl_contains({
52+
"Fyler",
53+
}, vim.fn.getbufvar(buf, "&filetype")) then return false end
54+
55+
return true
56+
end,
57+
},
5058
}

0 commit comments

Comments
 (0)