1
0
Fork
You've already forked nvim-renamid
0
Neovim plugin for LSP rename function in a centered popup
  • Lua 100%
Find a file
2026年06月17日 16:59:33 -03:00
lua popcorn 2026年06月17日 16:59:33 -03:00
plugin rename plugin 2024年04月17日 12:16:12 -03:00
LICENSE Update LICENSE 2026年04月13日 16:14:02 +02:00
README.md Update README.md 2026年04月13日 16:17:48 +02:00

nvim-renamid

Rename in the mid

Neovim plugin for LSP rename function in a popup

Caveats

  • This is available only using configured LSP languages
  • This plugin has been developed on and for Linux following open source philosophy.

Installation

vim.pack.add {
 "https://codeberg.org/caskstrength/nvim-renamid",
 "https://codeberg.org/caskstrength/nvim-popcorn",
}

Configuration

require'renamid'.setup { 
 -- This is optional. Only If you want to change default configurations
 
 -- Width of popup. Default value 30
 width = 30,
 
 -- Title of popup. Default value "Rename".
 -- The second value is a link to a highlight keyword. Default "Boolean" keyword hightlight link
 title = { "Rename", "Boolean" },
 
 -- Border of popup. Default value "rounded_corners_border".
 -- Other borders: "simple_border", "simple_thick_border", "double_border", "double_simple_border" 
 border = "rounded_corners_border"
}

Usage

vim.keymap.set("n", "<leader>rn", function() vim.cmd("Renamid") end, { desc = "LSP: Rename" })
  • A centered popup will be opened with the word behind the cursor in INSERT MODE, so you can edit it an press <CR> to make the change take effect. Double <ESC> to close the popup without changes.

Screenshots

Simple use

renamid

NOTE: The colorscheme nox from nvim-nyctophilia is used in this image.