mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 06:39:14 +00:00
nvim: remove grep_string and improve telescope config
This commit is contained in:
parent
1f26dcd590
commit
ba4136ea4c
1 changed files with 9 additions and 11 deletions
|
|
@ -20,10 +20,13 @@ telescope.setup {
|
|||
mappings = {
|
||||
n = {
|
||||
["<C-c>"] = actions.close,
|
||||
["r"] = actions.to_fuzzy_refine,
|
||||
["j"] = actions.move_selection_next,
|
||||
["k"] = actions.move_selection_previous,
|
||||
},
|
||||
i = {
|
||||
["<C-Up>"] = actions.cycle_history_prev,
|
||||
["<C-Down>"] = actions.cycle_history_next,
|
||||
["<Up>"] = actions.cycle_history_prev,
|
||||
["<Down>"] = actions.cycle_history_next,
|
||||
},
|
||||
},
|
||||
layout_config = { height = 0.4 },
|
||||
|
|
@ -34,7 +37,7 @@ telescope.setup {
|
|||
find_command = { "rg", "--files", "--hidden", "--glob", "!**/.git/*" },
|
||||
},
|
||||
current_buffer_fuzzy_find = {
|
||||
layout_config = { height = 0.8 },
|
||||
layout_config = { height = 0.6 },
|
||||
mappings = {
|
||||
n = {
|
||||
["n"] = actions.move_selection_next,
|
||||
|
|
@ -43,15 +46,11 @@ telescope.setup {
|
|||
},
|
||||
},
|
||||
lsp_references = {
|
||||
layout_config = { height = 0.8 },
|
||||
layout_config = { height = 0.6 },
|
||||
initial_mode = "normal",
|
||||
},
|
||||
live_grep = {
|
||||
layout_config = { height = 0.8 },
|
||||
},
|
||||
grep_string = {
|
||||
layout_config = { height = 0.8 },
|
||||
initial_mode = "normal",
|
||||
layout_config = { height = 0.6 },
|
||||
},
|
||||
resume = {
|
||||
initial_mode = "normal",
|
||||
|
|
@ -84,8 +83,7 @@ vim.keymap.set("n", "N", cached_buffer_picker)
|
|||
|
||||
vim.keymap.set("n", "<leader>/", builtin["find_files"])
|
||||
vim.keymap.set("n", "<leader>?", builtin["help_tags"])
|
||||
vim.keymap.set("n", "<leader>g/", builtin["live_grep"])
|
||||
vim.keymap.set("n", "<leader>gw", builtin["grep_string"]) -- greps current word under cursor
|
||||
vim.keymap.set("n", "<leader>g/", function() builtin["live_grep"] { default_text = vim.fn.expand("<cword>") } end)
|
||||
vim.keymap.set("n", "<leader>d", builtin["diagnostics"])
|
||||
vim.keymap.set("n", "<leader>b", builtin["buffers"])
|
||||
vim.keymap.set("n", "<leader>sp", builtin["spell_suggest"])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue