packages: Add xone

This commit is contained in:
DashieTM 2024-04-29 14:26:02 +02:00
parent fe167fd072
commit cf63b635ac
20 changed files with 798 additions and 813 deletions

View file

@ -0,0 +1,16 @@
-- nvimtree
local function open_nvim_tree(data)
local directory = vim.fn.isdirectory(data.file) == 1
if not directory then
return
end
print("FUCK")
-- change to the directory
vim.cmd.cd(data.file)
-- open the tree
require("nvim-tree.api").tree.open()
end
vim.api.nvim_create_autocmd({ "VimEnter" }, { callback = open_nvim_tree })