Skip to content

Commit

Permalink
stylua
Browse files Browse the repository at this point in the history
  • Loading branch information
b-ggs committed Sep 14, 2024
1 parent 2bb9f0e commit 97f0dcd
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions nvim/.config/nvim/lua/plugins/telescope.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,20 @@ return {

local new_maker = function(filepath, bufnr, opts)
opts = opts or {}
if opts.use_ft_detect == nil then opts.use_ft_detect = true end
if opts.use_ft_detect == nil then
opts.use_ft_detect = true
end
opts.use_ft_detect = opts.use_ft_detect == false and false or bad_files(filepath)
previewers.buffer_previewer_maker(filepath, bufnr, opts)
end

require("telescope").setup {
require("telescope").setup({
defaults = {
buffer_previewer_maker = new_maker,
preview = {
filesize_limit = 0.05, -- in MB
},
}
}
},
})
end,
}

0 comments on commit 97f0dcd

Please sign in to comment.