function to search all files
This commit is contained in:
parent
bfbf2337a2
commit
fce7919f72
@ -38,6 +38,15 @@ require('telescope').setup {
|
||||
},
|
||||
}
|
||||
|
||||
-- Live grep all files (including gitignored and hidden files)
|
||||
vim.keymap.set("n", "<leader>fW", function()
|
||||
require('telescope.builtin').live_grep({
|
||||
additional_args = function()
|
||||
return { "--hidden", "--no-ignore" }
|
||||
end
|
||||
})
|
||||
end, { desc = "telescope live grep all files" })
|
||||
|
||||
-- make leader-e toggle the tree view as opposed to just setting focus
|
||||
vim.api.nvim_set_keymap('n', '<leader>e', ':NvimTreeToggle<CR>', {noremap = true, silent = true})
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user