Skip to content

Commit

Permalink
feat(fzf): use formatter path.filename_first (#376)
Browse files Browse the repository at this point in the history
  • Loading branch information
n3wborn authored Jul 1, 2024
1 parent d856284 commit f5c8be3
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions lua/plugins/fzf_lua.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ return {
{
'<leader>ff',
function()
require('fzf-lua').files()
require('fzf-lua').files({ formatter = 'path.filename_first' })
end,
desc = 'Find File',
},
{
'<leader>fF',
function()
require('fzf-lua').files()
require('fzf-lua').files({ formatter = 'path.filename_first' })
end,
desc = 'Find File',
},
Expand All @@ -35,21 +35,21 @@ return {
{
'<leader>sd',
function()
require('fzf-lua').grep_cword()
require('fzf-lua').grep_cword({ formatter = 'path.filename_first' })
end,
desc = 'Grep Current Word',
},
{
'<leader>o',
function()
require('fzf-lua').oldfiles()
require('fzf-lua').oldfiles({ formatter = 'path.filename_first' })
end,
desc = 'Old files opened',
},
{
'<leader>b',
function()
require('fzf-lua').buffers()
require('fzf-lua').buffers({ formatter = 'path.filename_first' })
end,
desc = 'Find Buffers',
},
Expand Down Expand Up @@ -149,11 +149,11 @@ return {
-- rg_opts = [[--color=never --files --hidden --follow -g "!.git"]],
-- fd_opts = [[--color=never --type f --hidden --follow --exclude .git]],
-- },
-- buffers = {
-- formatter = 'path.filename_first',
-- preview_opts = 'hidden',
-- fzf_opts = { ['--delimiter'] = ' ', ['--with-nth'] = '-1..' },
-- },
buffers = {
formatter = 'path.filename_first',
-- preview_opts = 'hidden',
-- fzf_opts = { ['--delimiter'] = ' ', ['--with-nth'] = '-1..' },
},
git = {
bcommits = {
cmd = "git log --color --pretty=format:'%C(yellow)%h%Creset %Cgreen%><(12)%cr%><|(12)%Creset %s' <file>",
Expand Down

0 comments on commit f5c8be3

Please sign in to comment.