diff --git a/lua/weeheavy/plugins/snipe.lua b/lua/weeheavy/plugins/snipe.lua index 15938e5..d333cdf 100644 --- a/lua/weeheavy/plugins/snipe.lua +++ b/lua/weeheavy/plugins/snipe.lua @@ -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",