2023-11-25 23:42:01 +08:00
|
|
|
return {
|
2024-01-03 14:18:04 +08:00
|
|
|
on_attach = function()
|
2024-01-06 00:30:26 +08:00
|
|
|
G.api.nvim_create_user_command('R', function()
|
|
|
|
G.cmd [[set splitbelow]]
|
|
|
|
G.cmd [[sp]]
|
|
|
|
G.cmd [[term python3 %]]
|
|
|
|
G.cmd [[startinsert]]
|
|
|
|
end, {})
|
2024-01-03 14:18:04 +08:00
|
|
|
end
|
2023-11-25 23:42:01 +08:00
|
|
|
}
|