Skip to content

Commit

Permalink
Prevent Cd (custom fzf-lua command) from listing .git dirs; shorten t…
Browse files Browse the repository at this point in the history
…imeoutlen
  • Loading branch information
benewberg committed Feb 11, 2023
1 parent b835358 commit ebb6d58
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lua/plugin/which-key.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ wk.register({
w = {":w<CR>", "save"},
c = {name = "change dir",
c = {":cd %:p:h<CR>", "change dir cwd"},
d = {"<cmd>lua require('fzf-lua').fzf_exec([[(echo '..' ; echo '-' ; echo '~' ; find . -type d -follow 2>/dev/null)]], {prompt = 'Cd> ', previewer = false, actions = {['default'] = function(selected) vim.api.nvim_command('cd ' .. selected[1]) end}})<CR>", "change dir"},
d = {"<cmd>lua require('fzf-lua').fzf_exec([[(echo '..' ; echo '-' ; echo '~' ; find . -type d ! -path \"*.git*\" -follow 2>/dev/null)]], {prompt = 'Cd> ', previewer = false, actions = {['default'] = function(selected) vim.api.nvim_command('cd ' .. selected[1]) end}})<CR>", "change dir"},
},
g = {name = "git",
b = {"<cmd>lua require('gitsigns').blame_line{full=true}<CR>", "blame"},
Expand Down
1 change: 1 addition & 0 deletions lua/settings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ vim.opt.lazyredraw = true
vim.opt.shortmess:append({c = true}) -- ignore completions messages
vim.opt.showmode = false -- not necessary with a statusline set
vim.opt.updatetime = 1000
vim.opt.timeoutlen = 20
vim.opt.colorcolumn = '100'
vim.opt.cursorline = true
vim.opt.number = true
Expand Down

0 comments on commit ebb6d58

Please sign in to comment.