update: enable live_multigrep

This commit is contained in:
Lucas F. 2024-12-17 17:46:22 -03:00
parent e3e70f072d
commit e3e80656c1
2 changed files with 15 additions and 13 deletions

View file

@ -45,6 +45,7 @@ local live_multigrep = function(opts)
:find() :find()
end end
M.setup = function() vim.keymap.set("n", "<space>fg", live_multigrep, { desc = "Find using multigrep" }) end M.setup = function() vim.keymap.set("n", "<space>fG", live_multigrep, { desc = "Find using multigrep" }) end
return M return M

View file

@ -1,18 +1,19 @@
if true then return end -- WARN: REMOVE THIS LINE TO ACTIVATE THIS FILE -- if true then return end -- WARN: REMOVE THIS LINE TO ACTIVATE THIS FILE
-- This will run last in the setup process and is a good place to configure -- This will run last in the setup process and is a good place to configure
-- things like custom filetypes. This is just pure lua so anything that doesn't -- things like custom filetypes. This is just pure lua so anything that doesn't
-- fit in the normal config locations above can go here -- fit in the normal config locations above can go here
-- Set up custom filetypes -- Set up custom filetypes
vim.filetype.add { -- vim.filetype.add {
extension = { -- extension = {
foo = "fooscript", -- foo = "fooscript",
}, -- },
filename = { -- filename = {
["Foofile"] = "fooscript", -- ["Foofile"] = "fooscript",
}, -- },
pattern = { -- pattern = {
["~/%.config/foo/.*"] = "fooscript", -- ["~/%.config/foo/.*"] = "fooscript",
}, -- },
} -- }
require("plugins.config.multigrep").setup()