Skip to content

How to disable dressing.nvim in nvim-tree.lua? #81

Answered by stevearc
linrongbin16 asked this question in Q&A
Discussion options

You must be logged in to vote

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,
  }
})

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@linrongbin16
Comment options

@linrongbin16
Comment options

@linrongbin16
Comment options

Answer selected by linrongbin16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants