diff --git a/lua/config/maps.lua b/lua/config/maps.lua index 2647cf4..50288e1 100644 --- a/lua/config/maps.lua +++ b/lua/config/maps.lua @@ -5,3 +5,20 @@ 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" }) diff --git a/lua/plugins/nvim-tree.lua b/lua/plugins/nvim-tree.lua deleted file mode 100644 index 93604bb..0000000 --- a/lua/plugins/nvim-tree.lua +++ /dev/null @@ -1,11 +0,0 @@ -return { - "nvim-tree/nvim-tree.lua", - version = "*", - lazy = false, - dependencies = { - "nvim-tree/nvim-web-devicons", - }, - config = function() - require("nvim-tree").setup {} - end, -}