add find keymaps
This commit is contained in:
parent
f76b553076
commit
1ca9e8e016
1 changed files with 29 additions and 11 deletions
|
|
@ -37,16 +37,15 @@
|
||||||
# └──────────────────────────────────────────────────┘
|
# └──────────────────────────────────────────────────┘
|
||||||
extraConfigLuaPre = ''
|
extraConfigLuaPre = ''
|
||||||
local telescopeWithArgs = function(fn, args, extension)
|
local telescopeWithArgs = function(fn, args, extension)
|
||||||
-- args.layout_config = {
|
args.layout_config = {
|
||||||
-- anchor = "N",
|
anchor = "N",
|
||||||
-- mirror = true,
|
mirror = true,
|
||||||
-- width = 0.8,
|
width = 0.8,
|
||||||
-- }
|
}
|
||||||
|
|
||||||
-- if fn == "keymaps" or fn == "registers" then args.layout_config.height = function(_, _, max_lines) return max_lines end end
|
if fn == "keymaps" or fn == "registers" then args.layout_config.height = function(_, _, max_lines) return max_lines end end
|
||||||
|
|
||||||
-- local args_with_theme = require("telescope.themes").get_dropdown(args)
|
local args_with_theme = require("telescope.themes").get_dropdown(args)
|
||||||
local args_with_theme = args
|
|
||||||
|
|
||||||
if extension ~= "" then
|
if extension ~= "" then
|
||||||
require("telescope").extensions[extension][fn](args_with_theme)
|
require("telescope").extensions[extension][fn](args_with_theme)
|
||||||
|
|
@ -109,7 +108,7 @@
|
||||||
fn = "live_grep";
|
fn = "live_grep";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
desc = "Find help tags";
|
desc = "Find help";
|
||||||
key = "<leader>fh";
|
key = "<leader>fh";
|
||||||
fn = "help_tags";
|
fn = "help_tags";
|
||||||
}
|
}
|
||||||
|
|
@ -130,14 +129,33 @@
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
desc = "Find word under cursor";
|
desc = "Find word under cursor";
|
||||||
key = "<leader>fw";
|
key = "<leader>f*";
|
||||||
fn = "grep_string";
|
fn = "grep_string";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
desc = "Search references";
|
desc = "Search references";
|
||||||
key = "gr";
|
key = "<leader>lR";
|
||||||
fn = "lsp_references";
|
fn = "lsp_references";
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
desc = "Find marks";
|
||||||
|
key = "<leader>f'";
|
||||||
|
fn = "marks";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
desc = "Find commands";
|
||||||
|
key = "<leader>fC";
|
||||||
|
fn = "commands";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
desc = "Find themes";
|
||||||
|
key = "<leader>ft";
|
||||||
|
fn = "colortheme";
|
||||||
|
args = {
|
||||||
|
enable_preview = true;
|
||||||
|
ignore_builtins = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue