2023-12-18 23:42:55 +08:00
|
|
|
return{
|
2024-01-06 00:30:26 +08:00
|
|
|
on_attach = function()
|
|
|
|
G.api.nvim_create_user_command('R', function()
|
|
|
|
G.cmd [[set splitbelow]]
|
|
|
|
G.cmd [[sp]]
|
|
|
|
G.cmd [[term sh %]]
|
2024-01-08 14:23:13 +08:00
|
|
|
G.cmd [[resize 10]]
|
2024-01-06 00:30:26 +08:00
|
|
|
G.cmd [[startinsert]]
|
|
|
|
end, {})
|
|
|
|
end
|
2023-12-18 23:42:55 +08:00
|
|
|
}
|