chore: refine keymap
This commit is contained in:
parent
a2011eab8c
commit
747aa12efc
2 changed files with 101 additions and 41 deletions
|
|
@ -1,22 +1,25 @@
|
|||
-- local status_ok, project = pcall(require, "project_nvim")
|
||||
-- if not status_ok then
|
||||
-- return
|
||||
-- end
|
||||
-- project.setup({
|
||||
-- active = true,
|
||||
-- on_config_done = nil,
|
||||
-- manual_mode = false,
|
||||
-- detection_methods = { "pattern" },
|
||||
-- patterns = { ".git", "_darcs", ".hg", ".bzr", ".svn", "Makefile", "package.json" },
|
||||
-- show_hidden = false,
|
||||
-- silent_chdir = true,
|
||||
-- ignore_lsp = {},
|
||||
-- datapath = vim.fn.stdpath("data"),
|
||||
-- })
|
||||
|
||||
local tele_status_ok, telescope = pcall(require, "telescope")
|
||||
if not tele_status_ok then
|
||||
return
|
||||
end
|
||||
|
||||
telescope.load_extension("project")
|
||||
|
||||
require('telescope').setup {
|
||||
extensions = {
|
||||
project = {
|
||||
base_dirs = {
|
||||
'~/dev/src',
|
||||
{'~/dev/src2'},
|
||||
{'~/dev/src3', max_depth = 4},
|
||||
{path = '~/dev/src4'},
|
||||
{path = '~/dev/src5', max_depth = 2},
|
||||
},
|
||||
hidden_files = true, -- default: false
|
||||
theme = "dropdown",
|
||||
order_by = "asc",
|
||||
search_by = "title",
|
||||
sync_with_nvim_tree = true, -- default false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue