local map = vim.api.nvim_set_keymap local g = vim.g options = {noremap = true} remap = {noremap = false} map("n", "", "", remap) map("n", " ", "", remap) g.mapleader = " " map("n", "", ":Telescope find_files", options) -- Navigate Buffers map("n", "", "h", options) map("n", "", "j", options) map("n", "", "k", options) map("n", "", "l", options) -- I aint no weak boy map("n", "", ":echo 'No Left for you'", options) map("n", "", ":echo 'No Right for you'", options) map("n", "", ":echo 'No Up for you'", options) map("n", "", ":echo 'No Down for you'", options) -- Close on q map("n", "q", ":q", options) -- Open Nerdtree map("n", "", ":NERDTreeToggle", options) -- Make ctrl+s work map("n", "", ":w", options) map("i", "", ":wi", options) -- Update vim config map("n", "", ":source $MYVIMRC", options) -- Y yank until the end of line map("n", "Y", "y$", {noremap = true})