add ghostty and use stowrc with dotfiles option
This commit is contained in:
1 parent
a47941c870
commit
2a8e6ff9ee
20 files changed
+55
-46
No files matched your search
@@ -0,0 +1,22 @@
|
||||
-- Keymaps are automatically loaded on the VeryLazy event
|
||||
-- Default keymaps that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/keymaps.lua
|
||||
-- Add any additional keymaps here
|
||||
|
||||
local function toggle_or_focus_explorer()
|
||||
local explorers = Snacks.picker.get({ source = "explorer" })
|
||||
local explorer = explorers[1]
|
||||
|
||||
if explorer then
|
||||
if explorer:is_focused() then
|
||||
explorer:close()
|
||||
else
|
||||
explorer:focus()
|
||||
end
|
||||
return
|
||||
end
|
||||
|
||||
-- No explorer open; open one at the project root
|
||||
Snacks.explorer({ cwd = LazyVim.root() })
|
||||
end
|
||||
|
||||
vim.keymap.set("n", "<leader>e", toggle_or_focus_explorer, { desc = "Explorer (toggle/focus)" })
|
||||
Reference in new issue
Block a user