feat: config
This commit is contained in:
commit
d47035b8c7
11 changed files with 421 additions and 0 deletions
23
after/plugin/telescope.lua
Normal file
23
after/plugin/telescope.lua
Normal file
|
@ -0,0 +1,23 @@
|
|||
local telescope = require('telescope')
|
||||
local builtin = require('telescope.builtin')
|
||||
|
||||
local ignore_pattern = {"*.class", "*.jar"}
|
||||
local final_command = {"find", "."}
|
||||
|
||||
for _, patt in ipairs(ignore_pattern) do
|
||||
table.insert(final_command, "-not")
|
||||
table.insert(final_command, "-name")
|
||||
table.insert(final_command, patt)
|
||||
end
|
||||
|
||||
telescope.setup({
|
||||
pickers = {
|
||||
find_files = {
|
||||
find_command = final_command,
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
vim.keymap.set('n', '<leader><leader>', builtin.find_files, {})
|
||||
vim.keymap.set('n', '<leader>g', builtin.git_files, {})
|
||||
vim.keymap.set('n', '<leader>d', builtin.buffers, {})
|
Loading…
Add table
Add a link
Reference in a new issue