diff --git a/config/nvim/lua/fschauen/keymap.lua b/config/nvim/lua/fschauen/keymap.lua index 734992a..aff0aeb 100644 --- a/config/nvim/lua/fschauen/keymap.lua +++ b/config/nvim/lua/fschauen/keymap.lua @@ -2,7 +2,7 @@ local M = {} local diagnostic = require 'fschauen.diagnostic' local window = require 'fschauen.window' -local pickers = require('fschauen.telescope').pickers +local pick = require('fschauen.telescope').pickers local toggle_number = function() vim.wo.number = not vim.wo.number @@ -97,47 +97,47 @@ local keymap = { }, telescope = { - { 'fa', pickers.autocommands (' Autocommands' ), desc = ' [a]utocommands' }, - { 'fb', pickers.buffers (' Buffers' ), desc = ' [b]uffers' }, - { 'fc', pickers.colorscheme (' Colorschemes' ), desc = ' [c]olorschemes' }, - { 'fdd', pickers.diagnostics ('󰀪 Document Diagnostics' ), desc = ' [d]iagnostics [d]ocument' }, - { 'fdw', pickers.diagnostics ('󰀪 Workspace Diagnostics'), desc = ' [d]iagnostics [w]orkspace' }, + { 'fa', pick.autocommands ' Autocommands' , desc = ' Telescope [a]utocommands' }, + { 'fb', pick.buffers ' Buffers' , desc = ' Telescope [b]uffers' }, + { 'fc', pick.colorscheme ' Colorschemes' , desc = ' Telescope [c]olorschemes' }, + { 'fdd', pick.diagnostics '󰀪 Document Diagnostics' , desc = ' Telescope [d]iagnostics [d]ocument' }, + { 'fdw', pick.diagnostics '󰀪 Workspace Diagnostics', desc = ' Telescope [d]iagnostics [w]orkspace' }, --'fe' - { 'ff', pickers.find_files (' Files' ), desc = ' [f]ind files' }, - { 'fF', pickers.all_files (' ALL files' ), desc = ' all [F]iles' }, - { 'fgr', pickers.live_grep (' Live grep' ), desc = ' Live [gr]ep' }, - { 'fgf', pickers.git_files (' Git files' ), desc = ' [g]it [f]iles' }, - { 'fgc', pickers.git_commits (' Commits' ), desc = ' [g]it [c]ommits' }, - { 'fh', pickers.here (' Current buffer' ), desc = ' [b]uffer [h]ere' }, - { 'fH', pickers.highlights ('󰌶 Highlights' ), desc = ' [H]ighlights' }, + { 'ff', pick.find_files ' Files' , desc = ' Telescope [f]ind files' }, + { 'fF', pick.all_files ' ALL files' , desc = ' Telescope all [F]iles' }, + { 'fgr', pick.live_grep ' Live grep' , desc = ' Telescope Live [gr]ep' }, + { 'fgf', pick.git_files ' Git files' , desc = ' Telescope [g]it [f]iles' }, + { 'fgc', pick.git_commits ' Commits' , desc = ' Telescope [g]it [c]ommits' }, + { 'fh', pick.here ' Current buffer' , desc = ' Telescope [b]uffer [h]ere' }, + { 'fH', pick.highlights '󰌶 Highlights' , desc = ' Telescope [H]ighlights' }, --'fi' - { 'fj', pickers.jumplist (' Jumplist' ), desc = ' [j]umplist' }, - { 'fk', pickers.keymaps (' Keymaps' ), desc = ' [k]eymaps' }, - { 'fK', pickers.help_tags (' Help tags' ), desc = ' [K] help/documentation' }, - { 'fl', pickers.loclist (' Location list' ), desc = ' [l]ocation List' }, - { 'fm', pickers.man_pages (' Man pages' ), desc = ' [m]an pages' }, + { 'fj', pick.jumplist ' Jumplist' , desc = ' Telescope [j]umplist' }, + { 'fk', pick.keymaps ' Keymaps' , desc = ' Telescope [k]eymaps' }, + { 'fK', pick.help_tags ' Help tags' , desc = ' Telescope [K] help/documentation' }, + { 'fl', pick.loclist ' Location list' , desc = ' Telescope [l]ocation List' }, + { 'fm', pick.man_pages ' Man pages' , desc = ' Telescope [m]an pages' }, --'fn' - { 'fo', pickers.vim_options (' Vim options' ), desc = ' vim [o]ptions' }, + { 'fo', pick.vim_options ' Vim options' , desc = ' Telescope vim [o]ptions' }, --'fp' - { 'fq', pickers.quickfix (' Quickfix' ), desc = ' [q]uickfix' }, - { 'fr', pickers.lsp_references (' References' ), desc = ' [r]eferences' }, - { 'fR', pickers.registers ('󱓥 Registers' ), desc = ' [R]registers' }, - { 'fs', pickers.lsp_document_symbols ('󰫧 Document Symbols ' ), desc = ' lsp document [s]ymbols' }, - { 'fS', pickers.lsp_workspace_symbols ('󱄑 Workspace Symbols ' ), desc = ' lsp workspace [S]ymbols' }, + { 'fq', pick.quickfix ' Quickfix' , desc = ' Telescope [q]uickfix' }, + { 'fr', pick.lsp_references ' References' , desc = ' Telescope [r]eferences' }, + { 'fR', pick.registers '󱓥 Registers' , desc = ' Telescope [R]registers' }, + { 'fs', pick.lsp_document_symbols '󰫧 Document Symbols ' , desc = ' Telescope lsp document [s]ymbols' }, + { 'fS', pick.lsp_workspace_symbols '󱄑 Workspace Symbols ' , desc = ' Telescope lsp workspace [S]ymbols' }, --'ft' used in todo_comments below - { 'fT', pickers.treesitter (' Treesitter symbols' ), desc = ' [T]reesitter Symbols' }, + { 'fT', pick.treesitter ' Treesitter symbols' , desc = ' Telescope [T]reesitter Symbols' }, --'fu' --'fv' - { 'fw', pickers.selection (--[[dynamic]]) , desc = ' [w]word under cursor' }, - { 'fw', pickers.selection (--[[dynamic]]), mode = 'v', desc = ' visual [s]election' }, + { 'fw', pick.selection ' Grep' , desc = ' Telescope [w]word under cursor' }, + { 'fw', pick.selection ' Grep', mode = 'v' , desc = ' Telescope [w]ord(s) selected' }, --'fx' --'fy' - { 'fz', pickers.spell_suggest ('󰓆 Spelling suggestions') , desc = ' [z] spell suggestions' }, - { 'f.', pickers.dotfiles (' Dotfiles' ) , desc = ' [.]dotfiles' }, - { 'f:', pickers.command_history (' Command history' ) , desc = ' [:]command history' }, - { 'f?', pickers.commands (' Commands' ) , desc = ' commands [?]' }, - { 'f/', pickers.search_history (' Search history' ) , desc = ' [/]search history' }, - { 'f', pickers.resume ('󰐎 Resume' ) , desc = ' Resume ' }, + { 'fz', pick.spell_suggest '󰓆 Spelling suggestions' , desc = ' Telescope [z] spell suggestions' }, + { 'f.', pick.dotfiles ' Dotfiles' , desc = ' Telescope [.]dotfiles' }, + { 'f:', pick.command_history ' Command history' , desc = ' Telescope [:]command history' }, + { 'f?', pick.commands ' Commands' , desc = ' Telescope commands [?]' }, + { 'f/', pick.search_history ' Search history' , desc = ' Telescope [/]search history' }, + { 'f', pick.resume '󰐎 Resume' , desc = ' Telescope Resume ' }, }, todo_comments = {