mirror of
https://github.com/marianozunino/nvim.git
synced 2025-10-28 19:30:41 -03:00
dev: automated commit - 2025-09-05 20:13:31
This commit is contained in:
parent
4c1fd716a2
commit
667fa0b7db
3 changed files with 34 additions and 49 deletions
|
|
@ -1,14 +0,0 @@
|
|||
return {
|
||||
"dmtrKovalenko/fff.nvim",
|
||||
build = "cargo build --release",
|
||||
opts = {},
|
||||
keys = {
|
||||
{
|
||||
"<leader>/",
|
||||
function()
|
||||
require("fff").find_files()
|
||||
end,
|
||||
desc = "Toggle FFF",
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
@ -36,27 +36,27 @@ M.config = function()
|
|||
nmap("<leader>oc", fzf_lua.lsp_outgoing_calls, { desc = "Outgoing Calls" })
|
||||
nmap("<leader>gf", fzf_lua.live_grep, { desc = "Find Live Grep" })
|
||||
|
||||
-- local exclusions = {
|
||||
-- "node_modules",
|
||||
-- ".git",
|
||||
-- "dist",
|
||||
-- "build",
|
||||
-- "coverage",
|
||||
-- "public",
|
||||
-- }
|
||||
local exclusions = {
|
||||
"node_modules",
|
||||
".git",
|
||||
"dist",
|
||||
"build",
|
||||
"coverage",
|
||||
"public",
|
||||
}
|
||||
|
||||
-- local exclude_opts = ""
|
||||
-- for _, item in ipairs(exclusions) do
|
||||
-- exclude_opts = exclude_opts .. " --exclude " .. item
|
||||
-- end
|
||||
--
|
||||
-- nmap("<leader>/", function()
|
||||
-- fzf_lua.files({
|
||||
-- cwd_prompt = false,
|
||||
-- silent = true,
|
||||
-- fd_opts = "--hidden --no-ignore --type f" .. exclude_opts,
|
||||
-- })
|
||||
-- end, { desc = "Find Files" })
|
||||
local exclude_opts = ""
|
||||
for _, item in ipairs(exclusions) do
|
||||
exclude_opts = exclude_opts .. " --exclude " .. item
|
||||
end
|
||||
|
||||
nmap("<leader>/", function()
|
||||
fzf_lua.files({
|
||||
cwd_prompt = false,
|
||||
silent = true,
|
||||
fd_opts = "--hidden --no-ignore --type f" .. exclude_opts,
|
||||
})
|
||||
end, { desc = "Find Files" })
|
||||
nmap(";", fzf_lua.buffers, { desc = "Find Buffers" })
|
||||
nmap("sb", fzf_lua.grep_curbuf, { desc = "Search Current Buffer" })
|
||||
nmap("gw", fzf_lua.grep_cword, { desc = "Search word under cursor" })
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue