The sfm-entry
extension is a plugin for the sfm plugin that allows users to filter entries in the sfm explorer.
To install the sfm-entry
extension, you will need to have the sfm plugin installed. You can then install the extension using your preferred plugin manager. For example, using packer.nvim:
{
"dinhhuy258/sfm.nvim",
requires = {
{ "dinhhuy258/sfm-filter.nvim" },
},
config = function()
local sfm_explorer = require("sfm").setup {}
sfm_explorer:load_extension "sfm-filter"
end
}
The sfm-filter
plugin provides the following configuration options:
local default_config = {
show_hidden = false,
ignore_names = {},
ignore_extensions = {},
mappings = {
toggle_filter = { "." },
},
}
You can override the default configuration in load_extension
method
sfm_explorer:load_extension("sfm-filter", {
show_hidden = false,
ignore_names = {
"node_modules"
},
ignore_extensions = {
"env"
},
mappings = {
toggle_filter = { "." },
},
})