vim/telescope: formatting

This commit is contained in:
Fernando Schauenburg 2023-08-06 19:13:32 +02:00
parent 7edd81af89
commit 986e801a1a

View file

@ -115,51 +115,50 @@ local config = function()
end end
map('<c-p>', { map('<c-p>', {
-- ╭────╮ ╭──────╮ ╭────────────╮ ╭───────────────────╮ -- ╭────╮ ╭──────╮ ╭────────────╮ ╭───────────────────╮
-- │keys│ │picker│ │prompt title│ │mapping description│ -- │keys│ │picker│ │prompt title│ │mapping description│
-- ╰────╯ ╰──────╯ ╰────────────╯ ╰───────────────────╯ -- ╰────╯ ╰──────╯ ╰────────────╯ ╰───────────────────╯
n = { n = {
{ 'a', ts.autocommands , ' Autocommands' , '[a]utocommands' }, { 'a', ts.autocommands , ' Autocommands' , '[a]utocommands' },
{ 'b', ts.buffers , ' Buffers' , '[b]uffers' }, { 'b', ts.buffers , ' Buffers' , '[b]uffers' },
{ 'c', my.colorschemes , ' Colorschemes' , '[c]olorschemes' }, { 'c', my.colorschemes , ' Colorschemes' , '[c]olorschemes' },
{ 'dd', my.diagnostics , '󰀪 Document Diagnostics' , '[d]iagnostics [d]ocument' }, { 'dd', my.diagnostics , '󰀪 Document Diagnostics' , '[d]iagnostics [d]ocument' },
{ 'dw', ts.diagnostics , '󰀪 Workspace Diagnostics', '[d]iagnostics [w]orkspace' }, { 'dw', ts.diagnostics , '󰀪 Workspace Diagnostics', '[d]iagnostics [w]orkspace' },
-- e -- e
{ 'f', ts.find_files , ' Files' , '[f]ind files' }, { 'f', ts.find_files , ' Files' , '[f]ind files' },
{ 'F', my.all_files , ' ALL files' , 'all [F]iles' }, { 'F', my.all_files , ' ALL files' , 'all [F]iles' },
{ 'gr', ts.live_grep , ' Live grep' , 'Live [gr]ep' }, { 'gr', ts.live_grep , ' Live grep' , 'Live [gr]ep' },
{ 'gf', ts.git_files , ' Git files' , '[g]it [f]iles' }, { 'gf', ts.git_files , ' Git files' , '[g]it [f]iles' },
{ 'gc', ts.git_commits , ' Commits' , '[g]it [c]ommits' }, { 'gc', ts.git_commits , ' Commits' , '[g]it [c]ommits' },
{ 'h', my.here , ' Current buffer' , '[b]uffer [h]ere' }, { 'h', my.here , ' Current buffer' , '[b]uffer [h]ere' },
{ 'H', ts.highlights , '󰌶 Highlights' , '[H]ighlights' }, { 'H', ts.highlights , '󰌶 Highlights' , '[H]ighlights' },
-- i -- i
{ 'j', ts.jumplist , ' Jumplist' , '[j]umplist' }, { 'j', ts.jumplist , ' Jumplist' , '[j]umplist' },
{ 'k', ts.keymaps , ' Keymaps' , '[k]eymaps' }, { 'k', ts.keymaps , ' Keymaps' , '[k]eymaps' },
{ 'K', ts.help_tags , ' Help tags' , '[K] help/documentation' }, { 'K', ts.help_tags , ' Help tags' , '[K] help/documentation' },
{ 'l', ts.loclist , ' Location list' , '[l]ocation List' }, { 'l', ts.loclist , ' Location list' , '[l]ocation List' },
{ 'm', ts.man_pages , ' Man pages' , '[m]an pages' }, { 'm', ts.man_pages , ' Man pages' , '[m]an pages' },
-- n -- n
{ 'o', ts.vim_options , ' Vim options' , 'vim [o]ptions' }, { 'o', ts.vim_options , ' Vim options' , 'vim [o]ptions' },
-- p -- p
{ 'q', ts.quickfix , ' Quickfix' , '[q]uickfix' }, { 'q', ts.quickfix , ' Quickfix' , '[q]uickfix' },
{ 'r', ts.lsp_references , ' References' , '[r]eferences' }, { 'r', ts.lsp_references , ' References' , '[r]eferences' },
{ 'R', ts.registers , '󱓥 Registers' , '[R]registers' }, { 'R', ts.registers , '󱓥 Registers' , '[R]registers' },
{ 's', ts.lsp_document_symbols , '󰫧 Document Symbols ' , '[l]sp document [s]ymbols' }, { 's', ts.lsp_document_symbols , '󰫧 Document Symbols ' , 'lsp document [s]ymbols' },
{ 'S', ts.lsp_workspace_symbols , '󱄑 Workspace Symbols ' , '[l]sp workspace [S]ymbols' }, { 'S', ts.lsp_workspace_symbols , '󱄑 Workspace Symbols ' , 'lsp workspace [S]ymbols' },
{ 't', ts.treesitter , ' Treesitter symbols' , '[t]reesitter Symbols' }, { 't', ts.treesitter , ' Treesitter symbols' , '[t]reesitter Symbols' },
-- u -- u
-- v -- v
{ 'w', my.selection , '' --[[dynamic]] , '[w]word under cursor' }, { 'w', my.selection , '' --[[dynamic]] , '[w]word under cursor' },
-- x -- x
-- y -- y
{ 'z', my.spell_suggest , '󰓆 Spelling suggestions' , '[z] spell suggestions' }, { 'z', my.spell_suggest , '󰓆 Spelling suggestions' , '[z] spell suggestions' },
{ '.', my.dotfiles , ' Dotfiles' , '[.]dotfiles' }, { '.', my.dotfiles , ' Dotfiles' , '[.]dotfiles' },
{ ':', ts.command_history , ' Command history' , '[:]command history' }, { ':', ts.command_history , ' Command history' , '[:]command history' },
{ '?', ts.commands , ' Commands' , 'commands [?]' }, { '?', ts.commands , ' Commands' , 'commands [?]' },
{ '/', ts.search_history , ' Search history' , '[/]search history' }, { '/', ts.search_history , ' Search history' , '[/]search history' },
{'<c-p>', ts.resume , '󰐎 Resume' , 'Resume' }, {'<c-p>', ts.resume , '󰐎 Resume' , 'Resume' },
}, },
v = { v = {
{ 's', my.selection , '' --[[dynamic]] , 'visual [s]election' }, { 's', my.selection , '' --[[dynamic]] , 'visual [s]election' },
} }