Update config
This commit is contained in:
parent
de76eeffc4
commit
9678e43efe
9 changed files with 128 additions and 11 deletions
29
lua/custom/plugins/other.lua
Normal file
29
lua/custom/plugins/other.lua
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
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',
|
||||
},
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue