Closed borisoid closed 3 weeks ago
This is strange, because I set plugins.bufferline.enable = true;
and I have the plugin working (with the current nixvim):
Resolved with https://github.com/nix-community/nixvim/pull/2013
As a result I get
require('bufferline').setup{}
line ininit.lua
and the plugin is not initialized.
I think this was a red herring; lua allows calling single-argument functions without parentheses. This is often used for DSL-style lua, similar to kotlin or groovy.
I have enabled bufferline
in my config, but it doesn't show me all the open buffers (only the current file on top).
If I do :ls
they show up that they are open and I can also switch between them using my keymap
. Can it be related to this issue? This is my bufferline config.
I have enabled
bufferline
in my config, but it doesn't show me all the open buffers (only the current file on top).If I do
:ls
they show up that they are open and I can also switch between them using mykeymap
. Can it be related to this issue? This is my bufferline config.
Not sure... if I use that config I see the buffers.
plugins.bufferline = {
enable = true;
settings.options = {
hover.enabled = true;
indicator.style = null;
mode = "buffers";
separatorStyle = "slant";
themable = true;
};
};
Not sure if it's related to your enabled \\
merge. Try with enable = true;
.
I have enabled
bufferline
in my config, but it doesn't show me all the open buffers (only the current file on top). If I do:ls
they show up that they are open and I can also switch between them using mykeymap
. Can it be related to this issue? This is my bufferline config.Not sure... if I use that config I see the buffers.
plugins.bufferline = { enable = true; settings.options = { hover.enabled = true; indicator.style = null; mode = "buffers"; separatorStyle = "slant"; themable = true; }; };
Not sure if it's related to your
enabled \\
merge. Try withenable = true;
.
It's still the same without the merge thing, weird issue.
This line
require('bufferline').setup${helpers.toLuaObject setupOptions}
has no parens for asetup
call. As a result I getrequire('bufferline').setup{}
line ininit.lua
and the plugin is not initialized.It does start showing nvim tabs though, idk why.![image](https://github.com/nix-community/nixvim/assets/54960216/9253b6c8-031e-42a5-b558-b7a0e7162b31)
Calling![image](https://github.com/nix-community/nixvim/assets/54960216/d6ecaddb-0158-488a-a1aa-06c0e79e57db)
setup
with parens fixes this.Every other plugin under
plugins/bufferlines
usesrequire(...).setup(${helpers.toLuaObject setupOptions})
(with parens) e.g.