feat(snipe): add indicator for modified files
This commit is contained in:
parent
8149b23d87
commit
6cce57a50c
1 changed files with 12 additions and 0 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue