Skip to content

Commit

Permalink
feat(lsp): add inc-rename (#154)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xricksanchez authored Apr 22, 2023
1 parent 295bc14 commit b60bf05
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lua/astrocommunity/lsp/inc-rename/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# IncRename

**Repository:** <https://github.com/smjonas/inc-rename.nvim>

Incremental LSP renaming based on Neovim's command-preview feature.
15 changes: 15 additions & 0 deletions lua/astrocommunity/lsp/inc-rename/inc-rename.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
return {
"smjonas/inc-rename.nvim",
config = function() require("inc_rename").setup() end,
keys = {
{
"<leader>lr",
function()
require "inc_rename"
return ":IncRename " .. vim.fn.expand "<cword>"
end,
expr = true,
desc = "IncRename",
},
},
}

0 comments on commit b60bf05

Please sign in to comment.