mirror of
https://github.com/tiyn/dotfiles.git
synced 2026-03-08 02:14:47 +01:00
nvim: switched renamer for oil.nvim
This commit is contained in:
@@ -114,3 +114,8 @@ end, {
|
||||
nargs = 1,
|
||||
complete = 'file'
|
||||
})
|
||||
|
||||
-- stevearc/oil.nvim
|
||||
vim.api.nvim_create_user_command('Renamer', function(opts)
|
||||
vim.cmd("Oil " .. opts.args)
|
||||
end, { nargs = "*" })
|
||||
|
||||
10
.config/nvim/lua/plugins/oil.lua
Normal file
10
.config/nvim/lua/plugins/oil.lua
Normal file
@@ -0,0 +1,10 @@
|
||||
return {
|
||||
-- rename files in buffer
|
||||
{
|
||||
"stevearc/oil.nvim",
|
||||
---@module 'oil'
|
||||
---@type oil.setupopts
|
||||
opts = {},
|
||||
dependencies = { "nvim-mini/mini.icons" },
|
||||
},
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
return {
|
||||
-- rename files in buffer
|
||||
{
|
||||
'qpkorr/vim-renamer',
|
||||
priority = 100,
|
||||
config = function()
|
||||
require('renamer')
|
||||
end
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user