Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: make to fuzzy refine easily configurable #2034

Merged
merged 1 commit into from
Jul 3, 2022

Conversation

Conni2461
Copy link
Member

CC @clason

telescope.setup {
  -- defaults = { },
  pickers = {
    live_grep = {
      mappings = {
        i = { ["<c-f>"] = actions.to_fuzzy_refine },
      },
    },
  },
  -- extensions = { },
}

@Conni2461 Conni2461 merged commit 2b1da47 into master Jul 3, 2022
@Conni2461 Conni2461 deleted the chore/configurable_to_fuzzy_refine branch July 3, 2022 19:39
@SophisticaSean
Copy link

here's a lua config working example:

local actions = require('telescope.actions')
require('telescope').setup {
  -- defaults = { },
  pickers = {
    live_grep = {
      mappings = {
        i = { ["<c-f>"] = actions.to_fuzzy_refine },
      },
    },
  },
  -- extensions = { },
}

@bangedorrunt
Copy link

@Conni2461 got this error when set border = false

E5108: Error executing lua .../start/telescope.nvim/lua/telescope/actions/generate.lua:79: attempt to index field 'prompt_border' (a nil value)
stack traceback:
	.../start/telescope.nvim/lua/telescope/actions/generate.lua:79: in function 'refine'
	...cker/start/telescope.nvim/lua/telescope/actions/init.lua:1320: in function 'run_replace_or_original'
	...packer/start/telescope.nvim/lua/telescope/actions/mt.lua:65: in function 'key_func'
	...k/packer/start/telescope.nvim/lua/telescope/mappings.lua:341: in function 'execute_keymap'
	[string ":lua"]:1: in main chunk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants