You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kickstart.nvim/lua/custom/plugins/other.lua

30 lines
627 B
Lua

return {
'rgroli/other.nvim',
lazy = false,
config = function()
require('other-nvim').setup {
mappings = {
'golang',
{ pattern = '/app/(.*)/(.*).rb', target = { { context = 'test', target = '/spec/%1/%2_spec.rb' } } },
{ pattern = '(.+)/spec/(.*)/(.*)_spec.rb', target = { { target = '%1/app/%2/%3.rb' } } },
},
}
end,
keys = {
{
'<leader>to',
function()
require('other-nvim').open()
end,
mode = 'n',
},
{
'<leader>tO',
function()
require('other-nvim').openVSplit()
end,
mode = 'n',
},
},
}