fix: oldfiles on win

This commit is contained in:
əlemi 2022-09-19 12:07:58 +02:00
parent c7a982b08a
commit 89e60d54f3
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -99,7 +99,7 @@ function KEYBINDS:set_telescope_keys(opts)
local theme = require('telescope.themes') local theme = require('telescope.themes')
-- File navigation -- File navigation
vim.keymap.set('n', '<C-ESC>', telescope.oldfiles, opts) vim.keymap.set('n', '<C-ESC>', telescope.oldfiles, opts)
vim.keymap.set('n', '<M-ESC>', telescope.oldfiles, opts) -- fallback for windows vim.keymap.set('n', '<M-!>', telescope.oldfiles, opts) -- fallback for windows... even <M-Esc> is used
vim.keymap.set('n', '<C-f>', telescope.find_files, opts) vim.keymap.set('n', '<C-f>', telescope.find_files, opts)
vim.keymap.set('n', '<M-f>', telescope.find_files, opts) -- fallback for windows vim.keymap.set('n', '<M-f>', telescope.find_files, opts) -- fallback for windows
vim.keymap.set('n', '<C-,>', telescope.live_grep, opts) vim.keymap.set('n', '<C-,>', telescope.live_grep, opts)