Adding multi-cursor goodness and Telescoping into hidden files
This commit is contained in:
parent
2205333a0e
commit
85c8aaaf55
@ -1,5 +1,13 @@
|
|||||||
local builtin = require('telescope.builtin')
|
local builtin = require('telescope.builtin')
|
||||||
vim.keymap.set('n', '<leader>ff', builtin.find_files, { desc = "Find files" })
|
vim.keymap.set('n', '<leader>ff', builtin.find_files, { desc = "Find files" })
|
||||||
vim.keymap.set('n', '<leader>fg', builtin.live_grep, { desc = "Find in live grep" })
|
vim.keymap.set('n', '<leader>fg', builtin.live_grep, { desc = "Find in live grep" })
|
||||||
|
vim.keymap.set('n', '<leader>fag',
|
||||||
|
function()
|
||||||
|
require('telescope.builtin').live_grep({ additional_args = { "-u" } })
|
||||||
|
end, { desc = "Find in live grep(including ignored files)" })
|
||||||
vim.keymap.set('n', '<leader>fs', builtin.grep_string, { desc = "Find string" })
|
vim.keymap.set('n', '<leader>fs', builtin.grep_string, { desc = "Find string" })
|
||||||
|
vim.keymap.set('n', '<leader>fas',
|
||||||
|
function()
|
||||||
|
require('telescope.builtin').grep_string({ additional_args = { "-u" } })
|
||||||
|
end, { desc = "Find all strings(including ignored files)" })
|
||||||
vim.keymap.set('n', '<leader>fh', builtin.help_tags, { desc = "Find from help" })
|
vim.keymap.set('n', '<leader>fh', builtin.help_tags, { desc = "Find from help" })
|
||||||
|
@ -51,4 +51,5 @@ require("lazy").setup({
|
|||||||
'lewis6991/gitsigns.nvim',
|
'lewis6991/gitsigns.nvim',
|
||||||
{'xiyaowong/transparent.nvim'},
|
{'xiyaowong/transparent.nvim'},
|
||||||
{ 'numToStr/Comment.nvim', opts = {} },
|
{ 'numToStr/Comment.nvim', opts = {} },
|
||||||
|
{ 'mg979/vim-visual-multi' },
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user