feat: improve config
This commit is contained in:
parent
1bec292f72
commit
9f68a648a7
15 changed files with 97 additions and 134 deletions
|
|
@ -1,22 +1,30 @@
|
|||
return {
|
||||
"ibhagwan/fzf-lua",
|
||||
dependencies = { "echasnovski/mini.icons" },
|
||||
opts = {},
|
||||
opts = {
|
||||
files = {
|
||||
rg_opts = [[--color=never --files -g "!.git" -g "!.jj" -g "!node_modules/" -g "!target/"]],
|
||||
},
|
||||
},
|
||||
keys = {
|
||||
{
|
||||
"<leader>ff",
|
||||
function() require('fzf-lua').files() end,
|
||||
desc = "Find Files in project directory"
|
||||
function()
|
||||
require("fzf-lua").files()
|
||||
end,
|
||||
desc = "Find Files in project directory",
|
||||
},
|
||||
{
|
||||
"<leader>fg",
|
||||
function() require('fzf-lua').live_grep() end,
|
||||
desc = "Find by grepping in project directory"
|
||||
function()
|
||||
require("fzf-lua").live_grep()
|
||||
end,
|
||||
desc = "Find by grepping in project directory",
|
||||
},
|
||||
{
|
||||
"<leader>fc",
|
||||
function() require('fzf-lua').files({ cwd = vim.fn.stdpath("config") }) end,
|
||||
desc = "Find in neovim configuration"
|
||||
"<cmd>FzfLua git_diff<cr>",
|
||||
desc = "Find in git files",
|
||||
},
|
||||
{
|
||||
"<leader>fh",
|
||||
|
|
@ -39,20 +47,6 @@ return {
|
|||
end,
|
||||
desc = "[F]ind [B]uiltin FZF",
|
||||
},
|
||||
{
|
||||
"<leader>fw",
|
||||
function()
|
||||
require("fzf-lua").grep_cword()
|
||||
end,
|
||||
desc = "[F]ind current [W]ord",
|
||||
},
|
||||
{
|
||||
"<leader>fW",
|
||||
function()
|
||||
require("fzf-lua").grep_cWORD()
|
||||
end,
|
||||
desc = "[F]ind current [W]ORD",
|
||||
},
|
||||
{
|
||||
"<leader>fd",
|
||||
function()
|
||||
|
|
@ -88,5 +82,5 @@ return {
|
|||
end,
|
||||
desc = "[/] Live grep the current buffer",
|
||||
},
|
||||
}
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue