fzf tweaks

This commit is contained in:
Alex Yatskov 2024-04-16 18:32:28 -07:00
parent ebb20dc30a
commit d3b013b398

View File

@ -3,12 +3,23 @@ require('Comment').setup()
-- fzf-lua -- fzf-lua
if vim.fn.executable('fzf') == 1 then if vim.fn.executable('fzf') == 1 then
vim.keymap.set('n', '<leader>fb', require('fzf-lua').buffers) local fzf_lua = require('fzf-lua')
vim.keymap.set('n', '<leader>fg', require('fzf-lua').git_files) fzf_lua.setup({
vim.keymap.set('n', '<leader>fh', require('fzf-lua').oldfiles) winopts = {
vim.keymap.set('n', '<leader>fl', require('fzf-lua').lines) preview = {
vim.keymap.set('n', '<leader>fp', require('fzf-lua').grep) winopts = {
vim.keymap.set('n', '<leader>fs', require('fzf-lua').live_grep_native) cursorline = false,
},
},
},
})
vim.keymap.set('n', '<leader>fb', fzf_lua.buffers)
vim.keymap.set('n', '<leader>fg', fzf_lua.git_files)
vim.keymap.set('n', '<leader>fh', fzf_lua.oldfiles)
vim.keymap.set('n', '<leader>fl', fzf_lua.lines)
vim.keymap.set('n', '<leader>fp', fzf_lua.grep)
vim.keymap.set('n', '<leader>fs', fzf_lua.live_grep_native)
end end
-- guid.nvim -- guid.nvim