feat: Adding config files
This commit is contained in:
@@ -0,0 +1,55 @@
|
||||
return {
|
||||
{
|
||||
'nvim-telescope/telescope.nvim',
|
||||
tag = '0.1.8',
|
||||
dependencies = { 'nvim-lua/plenary.nvim' },
|
||||
config = function()
|
||||
require('telescope').setup({
|
||||
defaults = {
|
||||
vimgrep_arguments = {
|
||||
'rg',
|
||||
'--color=never',
|
||||
'--no-heading',
|
||||
'--with-filename',
|
||||
'--line-number',
|
||||
'--column',
|
||||
'--smart-case',
|
||||
'--no-ignore', -- Include files ignored by .gitignore
|
||||
'--hidden', -- Include hidden files
|
||||
'--glob', '!target/', -- Exclude the `target/` directory
|
||||
'--binary', -- Ignore all binary files
|
||||
},
|
||||
},
|
||||
pickers = {
|
||||
find_files = {
|
||||
find_command = { 'rg', '--files', '--hidden', '--no-ignore', '--glob', '!target/', '--binary' },
|
||||
},
|
||||
},
|
||||
extensions = {
|
||||
themes = require('telescope.themes').get_dropdown({}),
|
||||
},
|
||||
})
|
||||
|
||||
-- Keymap to bring up the colorscheme picker
|
||||
vim.keymap.set('n', '<leader>uC', function()
|
||||
require('telescope.builtin').colorscheme({
|
||||
enable_preview = true, -- Shows preview of the colorschemes
|
||||
})
|
||||
end, { noremap = true, silent = true })
|
||||
end,
|
||||
},
|
||||
{
|
||||
'nvim-telescope/telescope-ui-select.nvim',
|
||||
config = function()
|
||||
require("telescope").setup({
|
||||
extensions = {
|
||||
["ui-select"] = {
|
||||
require("telescope.themes").get_dropdown {
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
require("telescope").load_extension("ui-select")
|
||||
end
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user