feat nvim: listchars & o-plugin framework

This commit is contained in:
2025-04-28 20:22:22 +08:00
parent 9e351f31d0
commit fa9018d3b5
4 changed files with 39 additions and 7 deletions

View File

@@ -0,0 +1,20 @@
return {
{
"fraso-dev/nvim-listchars",
opts = true,
event = "BufEnter",
config = function()
require("nvim-listchars").setup({
save_state = true, -- If enabled, save toggled state in a cache file. Will overwrite current `vim.opt.list` value.
listchars = { -- `listchars` to be displayed. See available options by running `:help listchars`
tab = "> ",
trail = "-",
nbsp = "+",
},
notifications = true, -- Enable or disable listchars notifications
exclude_filetypes = {}, -- List of filetypes where `listchars` is disabled
lighten_step = 5, -- Amount to add/remove from base color
})
end,
}
}