Home

Awesome

sfm-telescope

The sfm-telescope extension is a plugin for the sfm plugin that allows users to search for entries in the sfm explorer.

Demonstration

Here is a short demonstration of the sfm-telescope extension in action:

https://user-images.githubusercontent.com/17776979/216778129-a523c141-2ae0-4c1f-b26d-43d2aa65bfcd.mp4

Installation

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')

Configuration

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" },
  },
})