a lot more stuff
This commit is contained in:
@ -2,12 +2,12 @@ local misc = require('core.misc')
|
||||
local map = misc.map
|
||||
|
||||
return { 'nvim-telescope/telescope.nvim',
|
||||
disable = vim.version().minor < 9,
|
||||
disable = not vim.fn.has("nvim-0.9.0"),
|
||||
requires = {
|
||||
'nvim-lua/plenary.nvim',
|
||||
{ 'nvim-telescope/telescope-fzf-native.nvim',
|
||||
config = function()
|
||||
vim.cmd.make()
|
||||
vim.cmd("make")
|
||||
end
|
||||
}
|
||||
},
|
||||
@ -48,14 +48,8 @@ return { 'nvim-telescope/telescope.nvim',
|
||||
["<esc>"] = actions.close,
|
||||
['<C-j>'] = actions.move_selection_next,
|
||||
['<C-k>'] = actions.move_selection_previous,
|
||||
['<C-l>'] = actions.select_default,
|
||||
['<C-u>'] = actions.preview_scrolling_up,
|
||||
['<C-d>'] = actions.preview_scrolling_down,
|
||||
["<C-p>"] = action_layout.toggle_preview
|
||||
},
|
||||
n = {
|
||||
["gg"] = actions.move_to_top,
|
||||
["G"] = actions.move_to_bottom,
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -77,7 +71,7 @@ return { 'nvim-telescope/telescope.nvim',
|
||||
desc = 'Find string in current buffer.',
|
||||
})
|
||||
map('n', '<leader>i', telebuilt.help_tags, {
|
||||
desc = 'Fuzzy find over help tags.',
|
||||
desc = 'find help tags.',
|
||||
})
|
||||
|
||||
-- find over specific directories
|
||||
@ -85,12 +79,12 @@ return { 'nvim-telescope/telescope.nvim',
|
||||
require('telescope.builtin').find_files {
|
||||
cwd = vim.fn.stdpath("config")
|
||||
}
|
||||
end, { desc = "Fuzzy find over files in my config" })
|
||||
end, { desc = "find config files" })
|
||||
map('n', '<leader>tp', function()
|
||||
require('telescope.builtin').find_files {
|
||||
cwd = vim.fs.joinpath(vim.fn.stdpath("data"), "site/pack/deps/opt")
|
||||
}
|
||||
end, { desc = "Fuzzy find over files in my plugin directory" })
|
||||
end, { desc = "find files in plugin directory" })
|
||||
|
||||
-- enable previewing in the default colorscheme switcher
|
||||
telebuilt.colorscheme = function()
|
||||
|
Reference in New Issue
Block a user