From 1a8104551f8cef0cab3b0108856d77bcb67f0967 Mon Sep 17 00:00:00 2001 From: y-jan137 Date: Mon, 23 Mar 2026 15:47:13 +0300 Subject: Updates --- ghostty/config | 10 ++++++++-- nvim/init.lua | 11 +++++++++++ 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/ghostty/config b/ghostty/config index 4e6d1fc..75de0e9 100644 --- a/ghostty/config +++ b/ghostty/config @@ -5,7 +5,7 @@ mouse-hide-while-typing = true window-decoration = true macos-option-as-alt = true -background-opacity = 1 +background-opacity = 0.85 background-blur-radius = 20 keybind = cmd+shift+right=goto_split:right @@ -13,5 +13,11 @@ keybind = cmd+shift+left=goto_split:left keybind = cmd+shift+up=goto_split:up keybind = cmd+shift+down=goto_split:down +keybind = cmd+shift+l=goto_split:right +keybind = cmd+shift+h=goto_split:left +keybind = cmd+shift+k=goto_split:up +keybind = cmd+shift+j=goto_split:down + window-padding-balance = true -split-divider-color = #444444 \ No newline at end of file +split-divider-color = #444444 + diff --git a/nvim/init.lua b/nvim/init.lua index 9c60d58..25c24a2 100644 --- a/nvim/init.lua +++ b/nvim/init.lua @@ -158,6 +158,17 @@ vim.keymap.set("v", ">", ">gv", { desc = "Indent right and reselect" }) -- Quick file navigation vim.keymap.set("n", "e", ":Explore", { desc = "Open file explorer" }) + +-- h/l to navigate directory tree +vim.api.nvim_create_autocmd("FileType", { + group = augroup, + pattern = "netrw", + callback = function() + local opts = { buffer = true, remap = true } + vim.keymap.set("n", "h", "-", opts) -- go up a directory + vim.keymap.set("n", "l", "", opts) -- open file/directory + end, +}) vim.keymap.set("n", "ff", ":find ", { desc = "Find file" }) -- Better J behavior -- cgit v1.2.3