-- https://github.com/arnvald/viml-to-lua/blob/main/lua/mappings.lua vim.cmd('noremap :noh:call clearmatches()') -- clear matches Ctrl+b function map(mode, shortcut, command) vim.api.nvim_set_keymap(mode, shortcut, command, { noremap = true, silent = true }) end function nmap(shortcut, command) map('n', shortcut, command) end function imap(shortcut, command) map('i', shortcut, command) end function vmap(shortcut, command) map('v', shortcut, command) end function cmap(shortcut, command) map('c', shortcut, command) end function tmap(shortcut, command) map('t', shortcut, command) end -- PLUGINS --local builtin = require('telescope.builtin') --vim.keymap.set('n', 'ff', builtin.find_files, {}) --vim.keymap.set('n', 'fg', builtin.live_grep, {}) --vim.api.nvim_set_keymap( 'n', 'fw', 'lua require(\'telescope.builtin\').grep_string({search = vim.fn.expand("")})', {}) --vim.keymap.set('n', 'fb', builtin.buffers, {}) --vim.keymap.set('n', 'fh', builtin.help_tags, {})