all repos — dotfiles @ e85d1606045c9f78fb3f642345ec3b87458f1abb

my *nix dotfiles

nvim: use fd instead of find
Anirudh Oppiliappan x@icyphox.sh
Tue, 04 Oct 2022 11:21:26 +0530
commit

e85d1606045c9f78fb3f642345ec3b87458f1abb

parent

dc88d47a1e196d96718ec748e157042d975722bd

1 files changed, 11 insertions(+), 4 deletions(-)

jump to
M config/nvim/lua/maps.luaconfig/nvim/lua/maps.lua

@@ -30,9 +30,9 @@ cmd(':command! W w')

cmd(':command! Q q') local function fzy_ignore(patterns) - pattern_cmd = {} + local pattern_cmd = {} for _, p in ipairs(patterns) do - table.insert(pattern_cmd, string.format("! -path '%s'", p)) + table.insert(pattern_cmd, string.format("-E '%s'", p)) end return table.concat(pattern_cmd, ' ')

@@ -45,8 +45,15 @@ map(

'', '<leader>e', string.format( - ':call v:lua.fzy_edit("find -L . -type f %s | cut -c3-")<cr>', - fzy_ignore{'*.git/*', '*node_modules*', '*.pyc', '*migrations*', '*result*'} + ':call v:lua.fzy_edit("fd -t f -t l")<cr>', + fzy_ignore{ + '*.git/*', + '*node_modules*', + '*.pyc', + '*migrations*', + '*result*', + '*.direnv/*', + } ), { noremap=true, silent=true } )