make Telescope grep hidden files
This commit is contained in:
parent
3662e70092
commit
e92a7ee2c5
2 changed files with 47 additions and 1 deletions
|
@ -275,6 +275,14 @@ All that is saved in image, so that is why image is so heavy.
|
|||
|Ctrl+v | Open selection as a vsplit|
|
||||
|Ctrl+t | Open selection in new tab |
|
||||
|
||||
##### Usefull Telescope commands
|
||||
|
||||
Find files including hidden
|
||||
|
||||
```bash
|
||||
Telescope find_files hidden=true
|
||||
```
|
||||
|
||||
#### Markdown Preview
|
||||
|
||||
Mardkown Preview plugin commands:
|
||||
|
|
|
@ -5,5 +5,43 @@ return {
|
|||
vim.keymap.set('n', '<leader>fg', builtin.live_grep, {})
|
||||
vim.keymap.set('n', '<leader>fb', builtin.buffers, {})
|
||||
vim.keymap.set('n', '<leader>fh', builtin.help_tags, {})
|
||||
end
|
||||
require('telescope').setup {
|
||||
defaults = {
|
||||
vimgrep_arguments = {
|
||||
'rg',
|
||||
'--color=never',
|
||||
'--no-heading',
|
||||
'--with-filename',
|
||||
'--line-number',
|
||||
'--column',
|
||||
'--smart-case',
|
||||
'--no-ignore',
|
||||
'--hidden',
|
||||
'--glob',
|
||||
'!{**/.git/*,**/node_modules/*,**/package-lock.json,**/yarn.lock}',
|
||||
},
|
||||
} }
|
||||
end,
|
||||
opts = {
|
||||
--defaults = {
|
||||
--vimgrep_arguments = {
|
||||
--'rg',
|
||||
--'--color=never',
|
||||
--'--no-heading',
|
||||
--'--with-filename',
|
||||
--'--line-number',
|
||||
--'--column',
|
||||
--'--smart-case',
|
||||
--'--no-ignore',
|
||||
----'--hidden',
|
||||
--}
|
||||
--},
|
||||
pickers = {
|
||||
live_grep = {
|
||||
additional_args = function(opts)
|
||||
return { "--hidden" }
|
||||
end
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue