mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-01-06 22:51:15 +01:00
44 lines
877 B
Lua
44 lines
877 B
Lua
return {
|
|
|
|
-- Rename with cmdpreview
|
|
recommended = true,
|
|
desc = "Incremental LSP renaming based on Neovim's command-preview feature",
|
|
{
|
|
"smjonas/inc-rename.nvim",
|
|
cmd = "IncRename",
|
|
opts = {},
|
|
},
|
|
|
|
-- LSP Keymaps
|
|
{
|
|
"neovim/nvim-lspconfig",
|
|
opts = {
|
|
servers = {
|
|
["*"] = {
|
|
keys = {
|
|
{
|
|
"<leader>cr",
|
|
function()
|
|
local inc_rename = require("inc_rename")
|
|
return ":" .. inc_rename.config.cmd_name .. " " .. vim.fn.expand("<cword>")
|
|
end,
|
|
expr = true,
|
|
desc = "Rename (inc-rename.nvim)",
|
|
has = "rename",
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
|
|
--- Noice integration
|
|
{
|
|
"folke/noice.nvim",
|
|
optional = true,
|
|
opts = {
|
|
presets = { inc_rename = true },
|
|
},
|
|
},
|
|
}
|