[Telescope] Move keybind off <leader>
This commit is contained in:
		| @@ -22,47 +22,47 @@ return { | ||||
| 		}) | ||||
|  | ||||
| 		opts.desc = "telescope find files" | ||||
| 		vim.keymap.set("n", "<leader>ff", builtin.find_files, opts) | ||||
| 		vim.keymap.set("n", "ff", builtin.find_files, opts) | ||||
|  | ||||
| 		opts.desc = "telescope live grep" | ||||
| 		vim.keymap.set("n", "<leader>fg", builtin.live_grep, opts) | ||||
| 		vim.keymap.set("n", "fg", builtin.live_grep, opts) | ||||
|  | ||||
| 		opts.desc = "telescope buffers" | ||||
| 		vim.keymap.set("n", "<leader>fb", builtin.buffers, opts) | ||||
| 		vim.keymap.set("n", "fb", builtin.buffers, opts) | ||||
|  | ||||
| 		opts.desc = "Show nvim functions" | ||||
| 		vim.keymap.set("n", "<leader>fh", builtin.help_tags, opts) | ||||
| 		vim.keymap.set("n", "fh", builtin.help_tags, opts) | ||||
|  | ||||
|         -- Recent Commands | ||||
|         opts.desc = "Show recent commands" | ||||
|         vim.keymap.set('n', '<leader>frc', ':Telescope command_history<CR>', opts) | ||||
|         vim.keymap.set('n', 'frc', ':Telescope command_history<CR>', opts) | ||||
|  | ||||
|         -- Recent Searches | ||||
|         opts.desc = "Show recent searches" | ||||
|         vim.keymap.set('n', '<leader>frs', ':Telescope search_history<CR>', opts) | ||||
|         vim.keymap.set('n', 'frs', ':Telescope search_history<CR>', opts) | ||||
|  | ||||
|         -- Old Files | ||||
|         opts.desc = "Show recent files" | ||||
|         vim.keymap.set('n', '<leader>frf', ':Telescope oldfiles<CR>', opts) | ||||
|         vim.keymap.set('n', 'frf', ':Telescope oldfiles<CR>', opts) | ||||
|  | ||||
|         -- Quickfix Items | ||||
|         opts.desc = "Show quickfix items" | ||||
|         vim.keymap.set('n', '<leader>fq', ':Telescope quickfix<CR>', opts) | ||||
|         vim.keymap.set('n', 'fq', ':Telescope quickfix<CR>', opts) | ||||
|  | ||||
|         -- Spell Suggestions | ||||
|         opts.desc = "Show spell suggestions" | ||||
|         vim.keymap.set('n', '<leader>fs', ':Telescope spell_suggest<CR>', opts) | ||||
|         vim.keymap.set('n', 'fs', ':Telescope spell_suggest<CR>', opts) | ||||
|  | ||||
|         -- Diagnostics | ||||
|         opts.desc = "Show diagnostics" | ||||
|         vim.keymap.set('n', '<leader>fd', ':Telescope diagnostics<CR>', opts) | ||||
|         vim.keymap.set('n', 'fd', ':Telescope diagnostics<CR>', opts) | ||||
|  | ||||
|         -- Notifications | ||||
|         opts.desc = "Show notifications" | ||||
|         vim.keymap.set('n', '<leader>fd', ':Telescope notify<CR>', opts) | ||||
|         vim.keymap.set('n', 'fd', ':Telescope notify<CR>', opts) | ||||
|  | ||||
|         -- Implementations | ||||
|         opts.desc = "Show implementations" | ||||
|         vim.keymap.set('n', '<leader>fi', ':Telescope lsp_implementations<CR>', opts) | ||||
|         vim.keymap.set('n', 'fi', ':Telescope lsp_implementations<CR>', opts) | ||||
| 	end, | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user