chore: run stylua

This commit is contained in:
Stevan Freeborn
2026-07-19 11:15:18 -05:00
parent 1a46469842
commit 6e041e7d65
15 changed files with 448 additions and 452 deletions
+50 -50
View File
@@ -1,55 +1,55 @@
return {
"nvim-neo-tree/neo-tree.nvim",
branch = "v3.x",
dependencies = {
"nvim-lua/plenary.nvim",
"nvim-tree/nvim-web-devicons",
"MunifTanjim/nui.nvim",
},
config = function()
require("neo-tree").setup({
filesystem = {
use_libuv_file_watcher = true,
filtered_items = {
visible = true,
},
},
window = {
mappings = {
["Y"] = {
function(state)
local node = state.tree:get_node()
local path = node:get_id()
vim.fn.setreg("+", path, "c")
vim.notify("Copied: " .. path .. " to clipboard")
end,
desc = "Copy path to clipboard",
},
["O"] = {
function(state)
local node = state.tree:get_node()
"nvim-neo-tree/neo-tree.nvim",
branch = "v3.x",
dependencies = {
"nvim-lua/plenary.nvim",
"nvim-tree/nvim-web-devicons",
"MunifTanjim/nui.nvim",
},
config = function()
require("neo-tree").setup({
filesystem = {
use_libuv_file_watcher = true,
filtered_items = {
visible = true,
},
},
window = {
mappings = {
["Y"] = {
function(state)
local node = state.tree:get_node()
local path = node:get_id()
vim.fn.setreg("+", path, "c")
vim.notify("Copied: " .. path .. " to clipboard")
end,
desc = "Copy path to clipboard",
},
["O"] = {
function(state)
local node = state.tree:get_node()
vim.notify("Opening: " .. node.path)
local _, err = vim.ui.open(node.path)
local _, err = vim.ui.open(node.path)
if err then
vim.notify("Error opening explorer: " .. err, vim.log.levels.ERROR)
end
end,
desc = "Open in default app",
},
["P"] = { "toggle_preview", config = { use_float = false } },
},
},
event_handlers = {
{
event = "file_open_requested",
handler = function()
vim.cmd("Neotree close")
end,
},
},
})
vim.keymap.set("n", "<C-b>", ":Neotree filesystem reveal right<CR>", { desc = "Neotree show explorer" })
end,
if err then
vim.notify("Error opening explorer: " .. err, vim.log.levels.ERROR)
end
end,
desc = "Open in default app",
},
["P"] = { "toggle_preview", config = { use_float = false } },
},
},
event_handlers = {
{
event = "file_open_requested",
handler = function()
vim.cmd("Neotree close")
end,
},
},
})
vim.keymap.set("n", "<C-b>", ":Neotree filesystem reveal right<CR>", { desc = "Neotree show explorer" })
end,
}