local map = vim.keymap.set map("n", "e", "NvimTreeToggle", { desc = "NvimTree" }) map("n", "f", function() require("conform").format { async = true } end, { desc = "Format buffer" }) map("n", "", "h", { desc = "switch window left" }) map("n", "", "l", { desc = "switch window right" }) map("n", "", "j", { desc = "switch window down" }) map("n", "", "k", { desc = "switch window up" }) map("n", "", "noh", { desc = "general clear highlights" }) map("n", "n", "set nu!", { desc = "toggle line number" }) map("n", "/", "gcc", { desc = "toggle comment", remap = true }) map("v", "/", "gc", { desc = "toggle comment", remap = true }) map("t", "", "", { desc = "terminal escape terminal mode" }) map("n", "th", "ToggleTerm direction=horizontal", { desc = "ToggleTerm: horizontal" }) map("n", "tf", "ToggleTerm direction=float", { desc = "ToggleTerm: float" })