feat(snipe): add indicator for modified files

This commit is contained in:
Oliver Ladner 2026-09-15 10:23:23 +02:00
commit 6cce57a50c

View file

@ -14,6 +14,7 @@ return {
},
config = function()
local snipe = require("snipe")
snipe.setup({
hints = {
-- Charaters to use for hints
@ -28,6 +29,17 @@ return {
border = "rounded",
},
preselect_current = true,
-- Show a marker next to buffers that have unsaved changes
-- (no icons: filename/directory only)
buffer_format = {
"filename",
function(item)
if item.classifiers:sub(5, 5) == "+" then
return " [+]", "DiagnosticWarn"
end
return ""
end,
},
},
navigate = {
cancel_snipe = "q",