New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[QUESTION] I try to add the root path from neo-tree to cokline sep #1360
Comments
These lines might be useful for you. neo-tree.nvim/lua/neo-tree/defaults.lua Line 12 in 7d3b020
neo-tree.nvim/lua/neo-tree/defaults.lua Lines 31 to 33 in 7d3b020
Regarding cokeline, may I ask what you've got so far? There are various degrees that needs to be explained so I'd like to know that you don't understand. Have you read the sidebar section? |
yes, I had read many pages of code and issues to find that, what I need. So that was my first question/comment on github. I have a sidebar for coke but only a normal text and I wish so cool functions. sidebar = {
filetype = {'NvimTree', "neo-tree"},
components = {
{
text = 'File Explorer',
fg = title,
bg = bg,
style = 'bold',
},
},
},
Idk, I would like to add some code for the empty line so that if I want a new file or something with a keybind to write in the blank line instead of a popup, for a new file. That would be nice. I find my idea useful |
I don't quite understand what you want but I think this will help you. Could you give me your nvim-tree example (as you said you liked the nvim-tree api)? {
text = function(buffer)
local mgr = require("neo-tree.sources.manager")
if not vim.api.nvim_buf_is_valid(buffer.number) then
return "File Explorer"
end
local winid = vim.b[buffer.number].neo_tree_winid
local state = mgr.get_state_for_window(winid)
if not state then
return "File Explorer"
end
return state.path
end,
style = "bold",
}, |
Mate, you might be interested in Idk if cokeline has a |
If you are satisfied, plz close this issue @cuattoo |
I don't understand what you mean. |
The borders |
Did you check the I don't think it has any borders at all, so I don't know what you are talking about. If you want to modify the borders in the winbar selector, please read the help file. You've got options like Do you know how to decorate tabline without any plugin? As you can see in #1368 (comment), you can decorate the raw = "<decorate-here>%{%v:lua.__get_selector()%}<and-here>", |
I don't quite understand how it works, |
Just to clarify, the "scrolled off parent node" stuff only applies when the window is scrolled down. In that situation, it proves the parent path of the node which is at the top of the visible screen. It really only makes sense to place this in the winbar of neo-tree. If you haven't changed any of the default settings regarding paths, the root path of neo-tree is just going to be the current working directory of the neovim tab. That means all you need to do is to use a generic "current working directory" component, which is a question for the cokeline project. If you want a raw statusline code, I use this:
There is a config option in neo-tree to hide the root folder, just set |
Did you check the docs?
Is your feature request related to a problem? Please describe.
If anyone knows how, please tell.
ty
Describe the solution you'd like.
I like the api in nvim-tree. I would be happy about an api and a api documentation.
Describe alternatives you've considered.
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: