move h to a
This commit is contained in:
parent
b3b3270082
commit
68a8adbc25
8
init.lua
8
init.lua
|
|
@ -572,7 +572,7 @@ require('lazy').setup({
|
||||||
builtin.find_files { cwd = vim.fn.stdpath 'config' }
|
builtin.find_files { cwd = vim.fn.stdpath 'config' }
|
||||||
end, { desc = '[S]earch [N]eovim files' })
|
end, { desc = '[S]earch [N]eovim files' })
|
||||||
|
|
||||||
vim.keymap.set('n', '<leader>shg', function()
|
vim.keymap.set('n', '<leader>sag', function()
|
||||||
builtin.live_grep {
|
builtin.live_grep {
|
||||||
prompt_title = 'Live Grep (All Files)',
|
prompt_title = 'Live Grep (All Files)',
|
||||||
-- This function adds the flags to the underlying grep command
|
-- This function adds the flags to the underlying grep command
|
||||||
|
|
@ -580,9 +580,9 @@ require('lazy').setup({
|
||||||
return { '--hidden', '--no-ignore', '--no-ignore-parent', '--glob=!**/.git/*' }
|
return { '--hidden', '--no-ignore', '--no-ignore-parent', '--glob=!**/.git/*' }
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
end, { desc = '[S]earch [H]idden [G]rep)' })
|
end, { desc = '[S]earch [A]ll [G]rep)' })
|
||||||
|
|
||||||
vim.keymap.set('n', '<leader>shf', function()
|
vim.keymap.set('n', '<leader>saf', function()
|
||||||
builtin.find_files {
|
builtin.find_files {
|
||||||
prompt_title = 'Find All Files (Hidden + Ignored)',
|
prompt_title = 'Find All Files (Hidden + Ignored)',
|
||||||
hidden = true, -- Show hidden dotfiles
|
hidden = true, -- Show hidden dotfiles
|
||||||
|
|
@ -590,7 +590,7 @@ require('lazy').setup({
|
||||||
no_ignore_parent = true, -- Ignore .gitignore rules of all parents, too
|
no_ignore_parent = true, -- Ignore .gitignore rules of all parents, too
|
||||||
file_ignore_patterns = { '.git/' }, -- <--- Explicitly remove the .git folder
|
file_ignore_patterns = { '.git/' }, -- <--- Explicitly remove the .git folder
|
||||||
}
|
}
|
||||||
end, { desc = 'Find All Files' })
|
end, { desc = '[S]earch [A]ll [F]iles' })
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
-- LSP Plugins
|
-- LSP Plugins
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue