Skip to content
Discussion options

You must be logged in to vote

The code for the telescope profile gave me some hints at this, I finally got it working:

local fzf = require("fzf-lua")
local actions = require("fzf-lua").actions
fzf.setup({
  "telescope",
  grep = {
    rg_glob = true,
  },
  fzf_opts = { ["--cycle"] = "" },
  buffers = {
    actions = {
      ["ctrl-d"] = false,
    },
    keymap = {
      builtin = {
        ["<C-d>"] = "preview-page-down",
        ["<C-u>"] = "preview-page-up",
      },
    },
  },
})
vim.keymap.set("n", "<leader>fg", fzf.grep_cword, {})
vim.keymap.set("n", "<leader>lg", fzf.live_grep, {})
vim.keymap.set("n", "<leader>ft", fzf.tags_grep_cword, {})
vim.keymap.set("n", "<leader>lt", fzf.tags, {})
vim.keymap.set("n", "<…

Replies: 2 comments 14 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
14 replies
@ohri-anurag
Comment options

@ibhagwan
Comment options

@ibhagwan
Comment options

@ohri-anurag
Comment options

Answer selected by ohri-anurag
@ibhagwan
Comment options

@ibhagwan
Comment options

@ibhagwan
Comment options

@ohri-anurag
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants