local map = vim.api.nvim_set_keymap local g = vim.g local options = {noremap = true} local remap = {noremap = false} --map("n", "", "", remap) --map("n", " ", "", remap) g.mapleader = " " map("n", "", ":Telescope find_files", options) --map("n", "", ":Telescope grep_string", options) map("n", "", ":Telescope live_grep", options) map("n", "c", ":CodeActionMenu", remap) -- LSP Functionality map("n", "gD", "lua vim.lsp.buf.declaration()", options) map("n", "gd", "lua vim.lsp.buf.definition()", options) map("n", "gr", "lua vim.lsp.buf.references()", options) map("n", "gi", "lua vim.lsp.buf.implementation()", options) map("n", "K", "lua vim.lsp.buf.hover()", options) map("n", "e", "lua vim.lsp.diagnostic.show_line_diagnostics()", options) map("n", "rn", "lua vim.lsp.buf.rename()", options) map("n", "", "lua vim.lsp.buf.code_action()", options) map("n", "[d", "lua vim.lsp.diagnostic.goto_prev()", options) map("n", "]d", "lua vim.lsp.diagnostic.goto_next()", options) -- Navigate Buffers map("n", "", "h", options) map("n", "", "j", options) map("n", "", "k", options) map("n", "", "l", options) -- Find file in NvimTree map("n", "f", ":NvimTreeFindFile", 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) -- Run Requests map("n", "r", "lua require('rest-nvim').run()", options) -- Close on q map("n", "q", ":q", options) -- Open Nerdtree map("n", "", ":NvimTreeToggle", 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})