xuyuanp / yanil Goto Github PK
View Code? Open in Web Editor NEWYet Another Nerdtree In Lua
License: Apache License 2.0
Yet Another Nerdtree In Lua
License: Apache License 2.0
Hey @Xuyuanp !
Cool plugin! I was wondering if you would be interested in collabin with github.com/nvim-lua/plenary.nvim since I think we'd both benefit from sharing some of the abstractions over vim.loop
(and potentially upstream some of them to core someday).
If you're not interested in doing so, totally fine :)
Have a good day!
In the screenshot on the README
I want to change the background of yanil window but I don't know how, I try winhighlight=Normal:... but it didn't worked.
Moreover, there are less options than nvim-tree so I must change source code to make it works such as show window in right, change root node name, ellipsis.
There are still some things I can't implement such as directory with only one subdirectory and no file may corrupt to directory/subdirectrory > instead of directory > subdirectory > (Java often has this kind of directories).
Hey, I first learned about this plugin during @mhartington 's presentation for vimconf2021 and your idea for file tree being just a library intrigued me. I skimmed through the docs and a though struck me:
Can this be used as a general purpose tree widget?
In other words, is there any kind of interface that could be used (or exposed easily) for user to supply a content provider? Maybe a list of lists or whatever. The main idea being that yanil already provides most of the functionality for implementing a functional tree widget with traversal, hooks and keymaps, while user would just supply the data and missing mappings for whatever.
An example would be a call stack widget.
Hi,
Im reviewing the code for node and tree but can figure out how to change a node highlight. I want to add a global mapping that search for the node in the tree (โ ), goes to the node (โ ), and adds a special highlight. I cant figure out this last part, could you please show me an example?
Thanks
Hi,
Im trying to create a mapping (o
) that behaves in the following way. When used on a directory it collapses or opens it depending on whether it is opened or closed. If used on a file, then it will close the directory that contains that file. I tried the following code but its not doing anything. Can you please help understand why its not working?
["o"] = function(tree, node)
node = node:is_dir() and node or node.parent
node:toggle()
tree:force_refresh_node()
end
Thanks!
I recently updated and noticed that the style changes break things in neovim.
After reverting and trying to debug, it seems the change of yanil/<package>
to yanil.<package>
, is the problem.
diff --git a/lua/yanil.lua b/lua/yanil.lua
index c2dc81d..8808131 100644
--- a/lua/yanil.lua
+++ b/lua/yanil.lua
@@ -1,9 +1,9 @@
-local git = require("yanil/git")
-local devicons = require("yanil/devicons")
+local git = require("yanil.git")
+local devicons = require("yanil.devicons")
local config = {
- colors = require("yanil/colors"),
- commands = require("yanil/commands"),
+ colors = require("yanil.colors"),
+ commands = require("yanil.commands"),
}
local M = {}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.