-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: change from telescope -> fzf-lua
BREAKING CHANGE - Since I changed the plugins so I will count this as an breaking chang
- Loading branch information
Showing
2 changed files
with
56 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
return { | ||
{ | ||
"ibhagwan/fzf-lua", | ||
dependencies = { "nvim-tree/nvim-web-devicons" }, | ||
keys = { | ||
{ "<leader>ff", "<cmd>lua require('fzf-lua').files({ fzf_opts = { ['--layout'] = 'reverse-list' } })<cr>" }, | ||
{ "<leader>fw", "<cmd>lua require('fzf-lua').live_grep_native({ fzf_opts = { ['--layout'] = 'reverse-list' } })<cr>" }, | ||
{ "<leader>fb", "<cmd>lua require('fzf-lua').buffers({ fzf_opts = { ['--layout'] = 'reverse-list' } })<cr>" }, | ||
}, | ||
config = true, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,46 @@ | ||
return { | ||
{ | ||
'nvim-telescope/telescope-fzf-native.nvim', | ||
build = 'make', | ||
}, | ||
{ | ||
'nvim-telescope/telescope.nvim', | ||
dependencies = { | ||
'nvim-lua/plenary.nvim', | ||
'nvim-treesitter/nvim-treesitter', | ||
'nvim-tree/nvim-web-devicons', | ||
}, | ||
cmd = 'Telescope', | ||
keys = { | ||
{ '<leader>ff', '<cmd>Telescope find_files<cr>' }, | ||
{ '<leader>fw', '<cmd>Telescope live_grep<cr>' }, | ||
{ '<leader>fb', '<cmd>Telescope buffers<cr>' }, | ||
}, | ||
opts = { | ||
defaults = { | ||
prompt_prefix = " ", | ||
selection_caret = " ", | ||
entry_prefix = " ", | ||
sorting_strategy = "ascending", | ||
layout_config = { | ||
horizontal = { | ||
prompt_position = "top", | ||
preview_width = 0.55, | ||
}, | ||
width = 0.87, | ||
height = 0.80, | ||
}, | ||
mappings = { | ||
n = { ["q"] = require("telescope.actions").close }, | ||
}, | ||
}, | ||
}, | ||
config = function(_, opts) | ||
local telescope = require('telescope') | ||
telescope.setup(opts) | ||
|
||
-- load_extension | ||
telescope.load_extension('fzf') | ||
end | ||
}, | ||
-- { | ||
-- 'nvim-telescope/telescope-fzf-native.nvim', | ||
-- build = 'make', | ||
-- }, | ||
-- { | ||
-- 'nvim-telescope/telescope.nvim', | ||
-- dependencies = { | ||
-- 'nvim-lua/plenary.nvim', | ||
-- 'nvim-treesitter/nvim-treesitter', | ||
-- 'nvim-tree/nvim-web-devicons', | ||
-- }, | ||
-- cmd = 'Telescope', | ||
-- keys = { | ||
-- { '<leader>ff', '<cmd>Telescope find_files<cr>' }, | ||
-- { '<leader>fw', '<cmd>Telescope live_grep<cr>' }, | ||
-- { '<leader>fb', '<cmd>Telescope buffers<cr>' }, | ||
-- }, | ||
-- opts = { | ||
-- defaults = { | ||
-- prompt_prefix = " ", | ||
-- selection_caret = " ", | ||
-- entry_prefix = " ", | ||
-- sorting_strategy = "ascending", | ||
-- layout_config = { | ||
-- horizontal = { | ||
-- prompt_position = "top", | ||
-- preview_width = 0.55, | ||
-- }, | ||
-- width = 0.87, | ||
-- height = 0.80, | ||
-- }, | ||
-- mappings = { | ||
-- n = { ["q"] = require("telescope.actions").close }, | ||
-- }, | ||
-- }, | ||
-- }, | ||
-- config = function(_, opts) | ||
-- local telescope = require('telescope') | ||
-- telescope.setup(opts) | ||
-- | ||
-- -- load_extension | ||
-- telescope.load_extension('fzf') | ||
-- end | ||
-- }, | ||
} |