local wk = require('which-key') local map = vim.keymap.set wk.setup({ key_labels = { [''] = 'SPC', [''] = 'RET', [''] = 'TAB' } }) vim.opt.timeoutlen = 500 vim.g.mapleader = ' ' map({ 'n', 'v' }, ';', ':') map({ 'n', 'v' }, 'q;', 'q:') wk.register({ [''] = { 'Telescope find_files', 'File file in project' }, ['/'] = { 'Telescope live_grep', 'Search project' }, [''] = { 'NERDTreeToggle', 'Toggle NERDTree' }, f = { name = 'file', e = { 'Telescope find_files cwd=~/.config/nvim', 'Find file in .config/nvim' }, E = { 'e ~/.config/nvim', 'Browse .config/nvim' }, f = { 'Telescope find_files cwd=~/ hidden=true no_ignore=true no_ignore_parent=true follow=true', 'Find file' }, F = { 'Telescope find_files', 'File file from here' }, l = { 'NERDTreeFind', 'Locate file' }, r = { 'Telescope oldfiles', 'Recent files' }, }, q = { name = 'quit/session', b = { 'q', 'Buffer' }, q = { 'qa', 'Neovim' }, }, e = { name = 'editor', p = { name = 'packer', s = { 'PackerSync', 'Packer Sync' }, c = { 'PackerCompile', 'Packer Compile' }, l = { 'PackerClean', 'Packer Clean' }, } } }, { prefix = '' })