mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-25 10:18:47 +02:00
feat(keymaps): Get rename command from inc_rename configuration (#579)
Gets the rename command from the inc_rename module (when installed), rather than assuming the default `IncRename`, allowing the user to modify the inc_rename options without having to create a new keymap.
This commit is contained in:
parent
1defd5f670
commit
a099b2d3ab
1 changed files with 2 additions and 2 deletions
|
@ -49,8 +49,8 @@ function M.get()
|
||||||
M._keys[#M._keys + 1] = {
|
M._keys[#M._keys + 1] = {
|
||||||
"<leader>cr",
|
"<leader>cr",
|
||||||
function()
|
function()
|
||||||
require("inc_rename")
|
local inc_rename = require("inc_rename")
|
||||||
return ":IncRename " .. vim.fn.expand("<cword>")
|
return ":" .. inc_rename.config.cmd_name .. " " .. vim.fn.expand("<cword>")
|
||||||
end,
|
end,
|
||||||
expr = true,
|
expr = true,
|
||||||
desc = "Rename",
|
desc = "Rename",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue