danielfalk / smart-open.nvim

Neovim plugin for fast file-finding
MIT License
446 stars 21 forks source link

Simpler mapping #36

Closed YodaEmbedding closed 9 months ago

YodaEmbedding commented 1 year ago

Regarding the README, a simpler mapping exists:

vim.keymap.set("n", "<leader><leader>", require("telescope").extensions.smart_open.smart_open)
danielfalk commented 1 year ago

Interesting. I tried this just now and it didn't work. I think it's because where my keymappings are defined, the plugin maybe isn't loaded yet. Doing this does work:

vim.keymap.set("n", "<leader><leader>", function ()
  require("telescope").extensions.smart_open.smart_open()
end)