some more changes

This commit is contained in:
Barrett Ruth 2026-02-22 11:41:46 -05:00
parent b246383e47
commit f1e7d8fe7f
Signed by: barrett
GPG key ID: A6C96C9349D2FC81
6 changed files with 64 additions and 20 deletions

View file

@ -1,13 +1,16 @@
return {
'ibhagwan/fzf-lua',
config = function(_, opts)
local fzf = require('fzf-lua')
local has_devicons = pcall(require, 'nvim-web-devicons')
opts.files = opts.files or {}
opts.files.file_icons = has_devicons
opts.grep = opts.grep or {}
opts.grep.file_icons = has_devicons
opts.grep.rg_opts = fzf.defaults.grep.rg_opts:gsub("%-e$", "--glob='!.git/' -e")
require('fzf-lua').setup(opts)
fzf.setup(opts)
vim.api.nvim_create_autocmd('FileType', {
pattern = 'fzf',