remapping F1 to prev buffer in input mode

This commit is contained in:
Rudis Muiznieks 2022-09-06 11:29:27 -05:00
parent 72e7f7e079
commit d336c5d976
Signed by: rudism
GPG Key ID: CABF2F86EF7884F9
2 changed files with 7 additions and 0 deletions

View File

@ -32,6 +32,12 @@
<family>DejaVu Serif</family> <family>DejaVu Serif</family>
</prefer> </prefer>
</alias> </alias>
<alias>
<family>Charter</family>
<prefer>
<family>DejaVu Serif</family>
</prefer>
</alias>
<alias> <alias>
<family>serif</family> <family>serif</family>
<prefer> <prefer>

View File

@ -14,6 +14,7 @@ vim.api.nvim_set_keymap('i', '<Down>', '<c-\\><c-o>gj', snoremap)
-- file navigation -- file navigation
vim.api.nvim_set_keymap('n', '-', '<cmd>lua require("telescope").extensions.vinegar.file_browser()<cr>', noremap) vim.api.nvim_set_keymap('n', '-', '<cmd>lua require("telescope").extensions.vinegar.file_browser()<cr>', noremap)
vim.api.nvim_set_keymap('n', '<F1>', '<cmd>b#<cr>', noremap) vim.api.nvim_set_keymap('n', '<F1>', '<cmd>b#<cr>', noremap)
vim.api.nvim_set_keymap('i', '<F1>', '<cmd>b#<cr>', noremap)
vim.api.nvim_set_keymap('n', '<leader>-', '<cmd>lua require("telescope.builtin").find_files('..cwdopt..')<cr>', noremap) vim.api.nvim_set_keymap('n', '<leader>-', '<cmd>lua require("telescope.builtin").find_files('..cwdopt..')<cr>', noremap)
vim.api.nvim_set_keymap('n', '_', '<cmd>lua require("telescope.builtin").buffers('..cwdopt..')<cr>', noremap) vim.api.nvim_set_keymap('n', '_', '<cmd>lua require("telescope.builtin").buffers('..cwdopt..')<cr>', noremap)
vim.api.nvim_set_keymap('n', '<leader>gg', '<cmd>lua require("telescope.builtin").live_grep('..cwdopt..')<cr>', noremap) vim.api.nvim_set_keymap('n', '<leader>gg', '<cmd>lua require("telescope.builtin").live_grep('..cwdopt..')<cr>', noremap)