From 8da47a6335f4662f12a191db101b28d143659f3a Mon Sep 17 00:00:00 2001 From: Brahmajit Das Date: Sat, 9 Mar 2024 22:06:39 +0530 Subject: deleting old config files Signed-off-by: Brahmajit Das --- lua/core/keymaps.lua | 46 ---------------------------------------------- 1 file changed, 46 deletions(-) delete mode 100644 lua/core/keymaps.lua (limited to 'lua/core/keymaps.lua') diff --git a/lua/core/keymaps.lua b/lua/core/keymaps.lua deleted file mode 100644 index 1305224..0000000 --- a/lua/core/keymaps.lua +++ /dev/null @@ -1,46 +0,0 @@ ------------------------------------------------------------ --- Define keymaps of Neovim and installed plugins. ------------------------------------------------------------ - -local function map(mode, lhs, rhs, opts) - local options = { noremap = true, silent = true } - if opts then - options = vim.tbl_extend('force', options, opts) - end - vim.api.nvim_set_keymap(mode, lhs, rhs, options) -end - --- Change leader to a comma -vim.g.mapleader = ',' - ------------------------------------------------------------ --- Neovim shortcuts ------------------------------------------------------------ - --- Disable arrow keys -map('', '', '') -map('', '', '') -map('', '', '') -map('', '', '') - --- Reload configuration without restart nvim -map('n', 'r', ':so %') - --- Change split orientation -map('n', 'tk', 'tK') -- change vertical to horizontal -map('n', 'th', 'tH') -- change horizontal to vertical - -map('n', 'M-j', ':resize -2') -map('n', 'M-k', ':resize +2') -map('n', 'M-l', ':vertical resize -2') -map('n', 'M-h', ':vertical resize +2') - -map('t', 'C-w', '') - -map('n', 'B', ':Buffers') -- FZF show open buffers -map('n', 'F', ':Files') -- FZF show files -map('n', 'A', ':Rg') -- FZF call ripgrep -map('n', 'C', ':Commits') -- FZF show git commits -map('n', 'M', ':Maps') -- FZF show normal mode mappings - -map('n', 'e', ':NvimTreeToggle') -- cgit v1.2.3