telescope-frecency.nvim/lua/frecency/tests
JINNOUCHI Yasushi 87ccbae5d2
feat: call init process before telescope loading (#234)
* feat: call init process before telescope loading

Fix #231

This changes enable to load frecency without telescope's loading itself.
This is needed when you want to load telescope lazily, but want to start
registering process as soon as Neovim has started.

```lua
{
  "nvim-telescope/telescope-frecency.nvim",
  main = "frecency",
  ---@type FrecencyOpts
  opts = {
    db_safe_mode = false,
  },
},

{
  "nvim-telescope/telescope.nvim",
  -- `cmd` opts makes lazy.nvim load telescope.nvim lazily.
  cmd = { "Telescope" },
  config = function()
    local telescope = require "telescope"
    telescope.setup {
      extensions = {
        other_extension = {
          foo_bar = true,
        },
        -- Here you need no configuration opts for frecency because
        -- you've already done.
      }
    }
    -- This is still needed.
    telescope.load_extension "frecency"
  end,
},
```

* docs: add note for loading telescope.nvim lazily
2024-08-01 17:12:43 +09:00
..
database_spec.lua docs: fix typo and formatting (#226) 2024-07-14 22:33:44 +09:00
file_lock_spec.lua fix!: show debug msg only when debug is true (#220) 2024-07-06 19:13:39 +09:00
frecency_spec.lua feat: call init process before telescope loading (#234) 2024-08-01 17:12:43 +09:00
minimal.lua feat!: remove code for SQLite (#172) 2024-01-30 18:26:07 +09:00
recency_spec.lua refactor!: use OO & add tests (#100) 2023-08-06 16:02:37 +09:00
util.lua feat: add frecency.query() to query DB (#217) 2024-07-06 15:35:59 +09:00
wait.lua feat: access to DB as lazily as possible (#180) 2024-03-21 16:23:45 +09:00