vim/telescope: show line numbers in file preview
This commit is contained in:
parent
3bf4b456ba
commit
47a9914508
1 changed files with 8 additions and 1 deletions
|
@ -14,6 +14,13 @@ autocmd('TextYankPost', {
|
||||||
desc = 'Briefly highlight yanked text.',
|
desc = 'Briefly highlight yanked text.',
|
||||||
group = id,
|
group = id,
|
||||||
pattern = '*',
|
pattern = '*',
|
||||||
callback = function(args) vim.highlight.on_yank() end
|
callback = function(_) vim.highlight.on_yank() end
|
||||||
|
})
|
||||||
|
|
||||||
|
autocmd('User', {
|
||||||
|
desc = 'Enable line number in Telescope previewers.',
|
||||||
|
group = id,
|
||||||
|
pattern = 'TelescopePreviewerLoaded',
|
||||||
|
command = 'setlocal number'
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue