How to disable dressing.nvim in nvim-tree.lua? #81
-
Hi, I'm using dressing.nvim and it looks great for me. Only issue is that, when create/rename a file in nvim-tree.lua. Since my nvim-tree.lua is on left side, width=40. The input UI box is very narrow. Is there any configuration can solve this issue? For example, fallback to native command-line when window width < 50? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
The most straightforward change would be to open the input window relative to the editor instead of the window require("dressing").setup({
input = {
relative = "editor",
}
}) If you want to keep the current behavior and only make the input window relative to the editor when you're in a narrow window, try this: require("dressing").setup({
input = {
get_config = function()
if vim.api.nvim_win_get_width(0) < 50 then
return {
relative = "editor",
}
end
end,
}
}) |
Beta Was this translation helpful? Give feedback.
The most straightforward change would be to open the input window relative to the editor instead of the window
If you want to keep the current behavior and only make the input window relative to the editor when you're in a narrow window, try this: