Skip to content

[feat] Support modes other than insert for input_buffer_type = "dressing" #36

@fnune

Description

@fnune

Here's my setup using lazy.nvim:

  {
    "smjonas/inc-rename.nvim",
    dependencies = { "stevearc/dressing.nvim" },
    config = function()
      local inc_rename = require("inc_rename")
      inc_rename.setup({ input_buffer_type = "dressing" })

      vim.keymap.set("n", "<leader>rn", function()
        return ":IncRename " .. vim.fn.expand("<cword>")
      end, { expr = true })
    end,
  },

inc-rename.nvim works just fine. However, I like to use dressing with these settings:

input = { insert_only = false }

(see the dressing README)

It seems like dressing's settings are ignored by inc-rename.nvim. When I press escape, the prompt just exits.

Could inc-rename.nvim inherit from the configuration passed to dressing's setup function? Or perhaps support passing an independent set of options?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions