update: huge style update

This commit is contained in:
2026-03-13 10:37:01 +03:00
parent 1dea8c1a69
commit c49c97d55c
55 changed files with 686 additions and 332 deletions
+26
View File
@@ -9,6 +9,9 @@ return {
local tree = require("neo-tree")
tree.setup({
clipboard = {
sync = "universal",
},
document_symbols = {
custom_kinds = {},
},
@@ -19,8 +22,31 @@ return {
["h"] = "close_node",
["<Right>"] = "open",
["<Left>"] = "close_node",
["C"] = "convert_to_directory",
},
},
commands = {
convert_to_directory = function(state)
local node = state.tree:get_node()
local path = node.path
if node.type ~= "file" then
print("Node is not a file")
return
end
local confirm = vim.fn.confirm("Convert " .. node.name .. " to directory?", "&Yes\n&No", 2)
if confirm ~= 1 then
return
end
vim.fn.delete(path)
vim.fn.mkdir(path, "p")
require("neo-tree.sources.manager").refresh(state.name)
print("Converted to directory: " .. path)
end,
},
})
vim.keymap.set("n", "<F2>", "<CMD>Neotree toggle<CR>")
end,