Per-repository configuration #1590
Answered
by
ibhagwan
patrick-5546
asked this question in
Q&A
-
I am working in a monorepo and get this message:
I was able to disable it globally with opts { files { git_icons = false }} But the message seems to imply that it is possible to disable git icons just for a particular repository. How can that be done? |
Beta Was this translation helpful? Give feedback.
Answered by
ibhagwan
Dec 18, 2024
Replies: 1 comment 1 reply
-
Change your opts to a lua function, check the cwd as condition, rough sketch: lua require('fzf-lua').files(function()
local cwd = vim.uv.cwd()
if cwd == `foo`
return {}
else
return { git_icons = true }
end
end) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
patrick-5546
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Change your opts to a lua function, check the cwd as condition, rough sketch: