local map = vim.keymap.set -- general mappings map("n", "", " w ") map("i", "jk", "") map("n", "", " %y+ ") -- copy whole filecontent -- nvimtree map("n", "", " NvimTreeToggle ") map("n", "", " NvimTreeFocus ") -- telescope map("n", "ff", " Telescope find_files ") map("n", "fo", " Telescope oldfiles ") map("n", "fw", " Telescope live_grep ") map("n", "gt", " Telescope git_status ") -- bufferline, cycle buffers map("n", "", " BufferLineCycleNext ") map("n", "", " BufferLineCyclePrev ") map("n", "", " bd ") -- comment.nvim map("n", "/", function() require("Comment.api").toggle.linewise.current() end) map("v", "/", "lua require('Comment.api').toggle.linewise(vim.fn.visualmode())") -- format map("n", "fm", function() require("conform").format() end)