mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-25 02:08:48 +02:00
Updated 7. Example Custom Plugins (markdown)
parent
772bfa8044
commit
194be91a03
1 changed files with 43 additions and 0 deletions
|
@ -2775,4 +2775,47 @@ return {
|
|||
require("telescope").load_extension "file_browser"
|
||||
end,
|
||||
}
|
||||
```
|
||||
#Refactoring
|
||||
```lua
|
||||
return {
|
||||
-- Incremental rename
|
||||
{
|
||||
"smjonas/inc-rename.nvim",
|
||||
cmd = "IncRename",
|
||||
keys = {
|
||||
{
|
||||
"<leader>un",
|
||||
function()
|
||||
return ":IncRename " .. vim.fn.expand "<cword>"
|
||||
end,
|
||||
desc = "Incremental rename",
|
||||
mode = "n",
|
||||
noremap = true,
|
||||
expr = true,
|
||||
},
|
||||
},
|
||||
config = true,
|
||||
},
|
||||
|
||||
-- Refactoring tool
|
||||
{
|
||||
"ThePrimeagen/refactoring.nvim",
|
||||
keys = {
|
||||
{
|
||||
"<leader>r",
|
||||
function()
|
||||
require("refactoring").select_refactor {
|
||||
show_success_message = true,
|
||||
}
|
||||
end,
|
||||
mode = "v",
|
||||
noremap = true,
|
||||
silent = true,
|
||||
expr = false,
|
||||
},
|
||||
},
|
||||
opts = {},
|
||||
},
|
||||
}
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue