vim.g.mapleader = " " vim.g.maplocalleader = "<5C>" -- https://neovim.reddit.com/comments/xykklt/_/j4gxyqx vim.keymap.set("n", "", function() require("Comment.api").toggle.linewise.current() end, { noremap = true, silent = true } ) vim.keymap.set("n", "Tt", function() vim.cmd [[Neotree toggle left]] end) vim.keymap.set("n", "Tf", function() vim.cmd [[Neotree toggle float]] end) -- Map Alt + Up to move the current line up vim.keymap.set("n", "", ":m .-2==", { noremap = true, silent = true }) vim.keymap.set("i", "", ":m .-2==gi", { noremap = true, silent = true }) -- -- Map Alt + Down to move the current line down vim.keymap.set("n", "", ":m .+1==", { noremap = true, silent = true }) vim.keymap.set("i", "", ":m .+1==gi", { noremap = true, silent = true })