Replies: 3 comments
-
Try this (pseudocode) {
neo-tree.setupOpts = {
filesystem = {
window = {
popup = {
position = { col = "100%"; row = "2"; };
size = lib.generators.mkLuaInline ''
function(state)
local root_name = vim.fn.fnamemodify(state.path, ":~")
local root_len = string.len(root_name) + 4
return {
width = math.max(root_len, 50),
height = vim.o.lines - 6
}
end
'';
};
};
};
};
} Emphasis on the format for position (attrset instead of lua table) and the |
Beta Was this translation helpful? Give feedback.
0 replies
-
my current configuration (I commented tons of thing off cuz something is broken and idk which one)
|
Beta Was this translation helpful? Give feedback.
0 replies
-
i give up on it |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am quite new to nixOS and right now I have no clue how to use lua inside nix files
from neo-tree visual customization wiki
this is what I wanted to achieve, is it possible to do this in nix?
Beta Was this translation helpful? Give feedback.
All reactions