2024-06-01 03:53:39 +01:00
|
|
|
return {
|
|
|
|
{
|
|
|
|
"ibhagwan/fzf-lua",
|
|
|
|
event = "VeryLazy",
|
|
|
|
dependencies = { "nvim-tree/nvim-web-devicons" },
|
|
|
|
config = function()
|
|
|
|
local fzflua = require('fzf-lua')
|
|
|
|
fzflua.register_ui_select()
|
|
|
|
fzflua.setup({
|
|
|
|
defaults = {
|
|
|
|
winopts = {
|
|
|
|
border = "single",
|
|
|
|
width = 0.6,
|
|
|
|
height = 0.5,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
files = {
|
|
|
|
previewer = false,
|
|
|
|
winopts = {
|
|
|
|
width = 0.5,
|
2024-10-20 01:40:32 +01:00
|
|
|
height = 0.5,
|
2024-06-01 03:53:39 +01:00
|
|
|
}
|
|
|
|
},
|
|
|
|
grep = {
|
|
|
|
winopts = {
|
|
|
|
width = 0.7,
|
|
|
|
preview = {
|
|
|
|
layout = "horizontal",
|
|
|
|
horizontal = "right:40%"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
vim.keymap.set('n', '<leader>ff', fzflua.files, {})
|
|
|
|
vim.keymap.set('n', '<leader>fe', fzflua.diagnostics_workspace, {})
|
|
|
|
vim.keymap.set('n', '<leader>fg', fzflua.live_grep, {})
|
|
|
|
vim.keymap.set('n', '<leader>fb', fzflua.buffers, {})
|
|
|
|
vim.keymap.set('n', '<leader>fh', fzflua.help_tags, {})
|
2024-10-20 01:40:32 +01:00
|
|
|
vim.keymap.set({'n','v'}, '<leader>fc', fzflua.commands, {})
|
2024-06-01 03:53:39 +01:00
|
|
|
end
|
2024-05-26 16:21:16 +01:00
|
|
|
}
|
2024-06-01 03:53:39 +01:00
|
|
|
}
|