The sfm-telescope
extension is a plugin for the sfm plugin that allows users to search for entries in the sfm explorer.
Here is a short demonstration of the sfm-telescope
extension in action:
sfm-telescope-demo.mp4
To install the sfm-telescope
extension, you will need to have the sfm and telescope plugins installed. You can then install the extension using your preferred plugin manager. For example, using packer.nvim:
{
"dinhhuy258/sfm.nvim",
requires = {
{ "dinhhuy258/sfm-telescope.nvim" },
},
config = function()
local sfm_explorer = require("sfm").setup {}
sfm_explorer:load_extension "sfm-telescope"
end
}
You must also enable the telescope extension with the following code:
require('telescope').load_extension('sfm-telescope')
The sfm-telescope
plugin provides the following configuration options:
local default_config = {
mappings = {
search = { "/" },
},
}
You can override the default configuration in load_extension
method
sfm_explorer:load_extension("sfm-telescope", {
mappings = {
search = { "s" },
},
})