Closed danielo515 closed 2 years ago
i just added the first option and it worked 🤔
i just added the first option and it worked 🤔
On the screenshot you have the nvimtree window focused. Have you tried to move the cursor to some other window? By the way, seems some weird unicode is going on on my pasted text.
Here is a gif that explains the problem better than words. At first you can see how only renders the marks when I'm focusing the nvimtree window, later on the gif, I execute the on_config_done function and from there it works as it should: ![Uploading Kapture 2022-04-25 at 17.07.53.gif…]()
Maybe you're on the rolling one? I'm using the stable lvim version.
i am indeed on the rolling
branch, also it doesn't matter which window i'm focused on, it works everytime
on another note, it seems like your gif has not been uploaded 😅
on another note, it seems like your gif has not been uploaded 😅
Dam it, let's see if it works this time
why does that look like indent-blankline
plugin 😅
can you run this?
git -C ~/.local/share/lunarvim/site/pack/packer/start/nvim-tree.lua rev-parse HEAD
why does that look like
indent-blankline
plugin 😅
Because I have it installed. That was my first guess, that it only appears because the indent-blankline plugin was adding it. Do you think that it may be also overriding it when it loses focus? Dam, if that is the case then it is super embarrassing
Because I have it installed. That was my first guess, that it only appears because the indent-blankline plugin was adding it. Do you think that it may be also overriding it when it loses focus? Dam, if that is the case then it is super embarrassing
i mean you can ignore it in indent-blankline
setup using filetype_exclude
and see if it helps or not
my config for ref https://github.com/abzcoding/lvim/blob/090d8a3587dff316b16d409ef41259be80824317/lua/user/indent_blankline.lua#L31
Just setup like this (because I was not sure where should I put the filetype)
{
"lukas-reineke/indent-blankline.nvim",
event = "BufRead",
setup = function()
vim.g.indentLine_enabled = 1
vim.g.indent_blankline_char = "|" -- actual character here, not this
vim.g.indent_blankline_filetype_exclude = { "help", "terminal", "dashboard", "NvimTree" }
vim.g.indent_blankline_buftype_exclude = { "terminal", "NvimTree" }
vim.g.indent_blankline_show_trailing_blankline_indent = false
vim.g.indent_blankline_show_first_indent_level = false
end,
}
Now indeed it does not show any indent guides. I had to reload lvim config 3 times, run packer sync and close and ope 3 times lvim. Why is it that hard to get some settings to apply?
EDIT: the good part is that now I have a nice indent-blankline config 😄
it should be better in the rolling branch, since we've merged this -> https://github.com/LunarVim/LunarVim/commit/0481ec8dddf4bd8ed81c10ae98807fec97f6f872
it should be better in the rolling branch, since we've merged this -> 0481ec8
I checked the diff and I don't see anything that could make this situation better. To what were you referring to?
I checked the diff and I don't see anything that could make this situation better. To what were you referring to?
i meant this part 😅 sorry for the confusion
I had to reload lvim config 3 times, run packer sync and close and ope 3 times lvim. Why is it that hard to get some settings to apply?
so the issue still persists?
can you run this then?
git -C ~/.local/share/lunarvim/site/pack/packer/start/nvim-tree.lua rev-parse HEAD
so the issue still persists?
Yes, but just because I'm still on the stable branch. I don't have the time to test the rolling one and get errors on it and not be able to work.
However, after updating my indent-blankline.nvim
config now I can't get the old method (manually calling the on_config_done function) to work either.
yes that was indent-blankline showing up, it had nothing to do with calling the on_config_done
that is why i'm asking to you to run
git -C ~/.local/share/lunarvim/site/pack/packer/start/nvim-tree.lua rev-parse HEAD
because i suspect the version of nvim-tree that you are using doesn't support indent_markers
or sth
Oh, sorry I was not understanding you properly. This is the output of the command:
20797a8d74e68bce50b98455c76c5de250c6f0e5
On Tue, Apr 26, 2022 at 8:51 PM Abouzar Parvan @.***> wrote:
yes that was indent-blankline showing up, it had nothing to do with calling the on_config_done that is why i'm asking to you to run
git -C ~/.local/share/lunarvim/site/pack/packer/start/nvim-tree.lua rev-parse HEAD
because i suspect the version of nvim-tree that you are using doesn't support indent_markers or sth
— Reply to this email directly, view it on GitHub https://github.com/LunarVim/LunarVim/issues/2515#issuecomment-1110138114, or unsubscribe https://github.com/notifications/unsubscribe-auth/AARKJWMVURCBR2ON7MWTNR3VHA3J5ANCNFSM5UHYEITA . You are receiving this because you authored the thread.Message ID: @.***>
Oh, sorry I was not understanding you properly.
yep packer has fucked up i think, that commit is from 40 days ago
latest version in rolling branch is https://github.com/LunarVim/LunarVim/blob/3de829e76ed3d90b25250b1ab76f6425146af9d2/snapshots/default.json#L68-L70
and the latest on master is https://github.com/LunarVim/LunarVim/blob/ad5eeaf6ad12cf05e4b936690bf78bc53827b12c/snapshots/default.json#L68-L70
if :LvimCoreSync
didn't fix the issue, you might need to cd
into that dir and manullay update the repo
thank you, will try that. What does LvimCoreSync do exactly?
it will make sure that the version of your plugins is synced with the one specified in the snapshot https://github.com/LunarVim/LunarVim/blob/dd65e285656a5c46c52144f4e082c8e2d1d95757/lua/lvim/plugin-loader.lua#L129-L139
and snapshots are here https://github.com/LunarVim/LunarVim/blob/dd65e285656a5c46c52144f4e082c8e2d1d95757/snapshots/default.json#L1-L10
Is that a new feature? I get that LvimCoreSync is not an editor command. I guess I'll have to make a pull manually. By the way, will you backport the fix for the packer commit snapshot? It is broken on stable
On Thu, Apr 28, 2022 at 3:21 PM Abouzar Parvan @.***> wrote:
it will make sure that the version of your plugins is synced with the one specified in the snapshot
and snapshots are here
— Reply to this email directly, view it on GitHub https://github.com/LunarVim/LunarVim/issues/2515#issuecomment-1112196995, or unsubscribe https://github.com/notifications/unsubscribe-auth/AARKJWNGTIZCP2RPHNULXYTVHKGG5ANCNFSM5UHYEITA . You are receiving this because you authored the thread.Message ID: @.***>
Is that a new feature? I get that LvimCoreSync is not an editor command. I guess I'll have to make a pull manually. By the way, will you backport the fix for the packer commit snapshot? It is broken on stable …
hopefully, we'll do a stable release soon ( and backport those bug fixes - maybe after #2537) cc: @kylo252
Just got into the packer folder, did a manual checkout to master, pull and indeed the configuration works. Dam packer... Sorry for the inconvenience
Problem description
Hello. I'm trying to configure lvim-tree to my likings, and it is being very very hard. What I want to setup is permanent indent makers. Currently by default they only show when the window has focus, and that makes me hard to navigate it visually when it is not.
Below is the specific configuration that is shown on nvim-tree docs. None of them works with current stable version of nvim. I don't know if latest fixes in nvim-tree file have fixed the problem for at least for scenario 2 below, but it should work for 1 and 2.
None of this works, and at least one should:
However, if after lvim has boot up I run
:lua lvim.builtin.nvimtree.on_config_done()
then the configuration is applied correctly and persist for the entire session. So this is a boot order problem or some other thingLunarVim version
f41edc6
Neovim version (>= 0.6.1)
NVIM v0.7.0
Operating system/version
macOS 12.1
Relevant log output