flash
This commit is contained in:
@ -1,6 +1,20 @@
|
||||
local use_google = require("utils").use_google
|
||||
|
||||
return {
|
||||
{
|
||||
"folke/flash.nvim",
|
||||
event = "VeryLazy",
|
||||
---@type Flash.Config
|
||||
opts = {},
|
||||
-- stylua: ignore
|
||||
keys = {
|
||||
{ "s", mode = { "n", "x", "o" }, function() require("flash").jump() end, desc = "Flash" },
|
||||
{ "S", mode = { "n", "x", "o" }, function() require("flash").treesitter() end, desc = "Flash Treesitter" },
|
||||
{ "r", mode = "o", function() require("flash").remote() end, desc = "Remote Flash" },
|
||||
{ "R", mode = { "o", "x" }, function() require("flash").treesitter_search() end, desc = "Treesitter Search" },
|
||||
{ "<c-s>", mode = { "c" }, function() require("flash").toggle() end, desc = "Toggle Flash Search" },
|
||||
},
|
||||
},
|
||||
"tikhomirov/vim-glsl",
|
||||
"sindrets/diffview.nvim",
|
||||
{ "folke/todo-comments.nvim", dependencies = { "nvim-lua/plenary.nvim" } },
|
||||
|
@ -196,6 +196,18 @@ return {
|
||||
codesearch = {
|
||||
experimental = true, -- enable results from google3/experimental
|
||||
},
|
||||
live_grep_args = {
|
||||
auto_quoting = true, -- enable/disable auto-quoting
|
||||
-- define mappings, e.g.
|
||||
mappings = { -- extend mappings
|
||||
i = {
|
||||
["<C-k>"] = require("telescope-live-grep-args.actions").quote_prompt(),
|
||||
["<C-i>"] = require("telescope-live-grep-args.actions").quote_prompt({ postfix = " --iglob " }),
|
||||
-- freeze the current list and start a fuzzy search in the frozen list
|
||||
["<C-.>"] = require("telescope-live-grep-args.actions").to_fuzzy_refine,
|
||||
},
|
||||
},
|
||||
},
|
||||
recent_files = {
|
||||
-- This function rewrites all file paths to the current workspace.
|
||||
-- For example, if w2 is the current workspace, then
|
||||
|
Reference in New Issue
Block a user