diff options
| author | y-jan137 <yousefjan24000@gmail.com> | 2026-03-23 15:47:13 +0300 |
|---|---|---|
| committer | y-jan137 <yousefjan24000@gmail.com> | 2026-03-23 15:47:13 +0300 |
| commit | 1a8104551f8cef0cab3b0108856d77bcb67f0967 (patch) | |
| tree | bfc9027cb962b4e61394abc681be6680aabbc133 | |
| parent | e9252dfe99790ce1ad5962593989992b739b4479 (diff) | |
Updates
| -rw-r--r-- | ghostty/config | 10 | ||||
| -rw-r--r-- | 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", "<leader>e", ":Explore<CR>", { 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", "<CR>", opts) -- open file/directory + end, +}) vim.keymap.set("n", "<leader>ff", ":find ", { desc = "Find file" }) -- Better J behavior |