local vimp = require("vimp") -- tabs and stuff vimp.vnoremap("", [[]]) vimp.noremap("", [[>gv]]) vimp.noremap("", [[", [[:nohlsearch]]) -- Don't lose selection on < or > vimp.xnoremap("<", [[", [[>gv]]) -- Toggle Lines vimp.nnoremap({ "silent" }, "l", function() if vim.b.lnstatus == nil then vim.b.lnstatus = "number" end if vim.b.lnstatus == "number" then vim.o.number = false vim.o.relativenumber = false vim.b.lnstatus = "nonumber" else vim.o.number = true vim.o.relativenumber = true vim.b.lnstatus = "number" end end) -- plugins vimp.noremap("md", [[:MarkdownPreviewToggle]]) vimp.nnoremap({ "silent" }, "", [[:BufferNext]]) vimp.nnoremap({ "silent" }, "", [[:BufferPrevious]]) vimp.nnoremap({ "silent" }, "a", [[:ArgWrap]]) vimp.noremap({ "silent" }, "n", [[:NvimTreeToggle]]) vimp.noremap({ "silent" }, "ff", [[:Telescope find_files]]) vimp.noremap({ "silent" }, "fg", [[:Telescope live_grep]]) vimp.noremap({ "silent" }, "fb", [[:Telescope buffers]]) vimp.noremap({ "silent" }, "fp", function() require("telescope").extensions.projects.projects({}) end)